Skip to content

Draft: Proto: Nairobi variant: 100,000 tez invoice to communityrewards.tez

This is a variant of the Nairobi proposal. Its protocol is identical to PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf except:

An invoice is added to mint 100,000 tez (one hundred thousand tez) and credit them to communityrewards.tez (tz1So7udy2xhCWpsxa8GLbgjKAV5LERo7q4H).

Update Snapshot

Update the proto hash everywhere

git grep --name-only PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf | xargs -d '\n' sed -i "s/PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf/PtNairob7pXeHYjDSDn6xXbA7M6UeNtuNXmQTay1rG1nN6Y5M17/g"
git commit -a -m "Everywhere: update protocol hash"

Verify the protocol hash

$ ./octez-protocol-compiler -hash-only src/proto_017_PtNairob/lib_protocol/
PtNairob7pXeHYjDSDn6xXbA7M6UeNtuNXmQTay1rG1nN6Y5M17
$ tail -1 src/lib_protocol_compiler/final_protocol_versions
PtNairob7pXeHYjDSDn6xXbA7M6UeNtuNXmQTay1rG1nN6Y5M17

Update regression test traces

Not done yet, should be done if the variant passes.

Manual Testing

Import a recent snapshot

$ wget https://mainnet-v16.xtz-shots.io/mainnet-3347522.rolling
$ ./octez-node snapshot import mainnet-3347522.rolling  --no-check

Patch the files for yes wallet/node.

dune exec devtools/yes_wallet/yes_wallet.exe -- create from context ~/.tezos-node in /tmp/yes-wallet --active-bakers-only
patch -p1 < scripts/yes-node.patch

Patch the node configutation such that it upgrades the protocol.

git apply <<EOF
diff --git a/src/lib_node_config/config_file.ml b/src/lib_node_config/config_file.ml
index 78cc555bf3..8b044339f0 100644
--- a/src/lib_node_config/config_file.ml
+++ b/src/lib_node_config/config_file.ml
@@ -88,6 +88,7 @@ let mainnet_user_activated_upgrades =
   [
     (28082l, "PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt");
     (204761l, "PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP");
+    (3347523l, "PtNairob7pXeHYjDSDn6xXbA7M6UeNtuNXmQTay1rG1nN6Y5M17");
   ]

 (* END_PATCHING_ZONE_FOR_MAINNET_USER_ACTIVATED_UPGRADES *)
EOF
make

Run the following in on terminal to start the node.

./octez-node run --synchronisation-threshold 0 --connections 0 --rpc-addr localhost

On another terminal bake one block and verify that tz1So7udy2xhCWpsxa8GLbgjKAV5LERo7q4H balance has increased by 100k tez.

nochem@peck ~/workspace/tezos () $ ./octez-client  get balance for tz1So7udy2xhCWpsxa8GLbgjKAV5LERo7q4H
Disclaimer:
  The  Tezos  network  is  a  new  blockchain technology.
  Users are  solely responsible  for any risks associated
  with usage of the Tezos network.  Users should do their
  own  research to determine  if Tezos is the appropriate
  platform for their needs and should apply judgement and
  care in their network interactions.

11658.123966 ꜩ
nochem@peck ~/workspace/tezos () $  ./octez-client -d /tmp/yes-wallet bake for --minimal-timestamp
Disclaimer:
  The  Tezos  network  is  a  new  blockchain technology.
  Users are  solely responsible  for any risks associated
  with usage of the Tezos network.  Users should do their
  own  research to determine  if Tezos is the appropriate
  platform for their needs and should apply judgement and
  care in their network interactions.

Apr 13 07:56:14.619 - 016-PtMumbai.baker.actions: Voting pass for liquidity baking toggle vote
Apr 13 07:56:24.391 - 016-PtMumbai.baker.actions: block BMRC3s5AKqKoZPH1exWQfHDp1FxQJLYKsmDv6WwNvcg76snw2Ja at level 3347523,
Apr 13 07:56:24.391 - 016-PtMumbai.baker.actions:   round 0 injected for baker_2 (tz1S8MNvuFEUsWgjHvi3AxibRBf388NhT1q2)
Injected block at minimal timestamp
nochem@peck ~/workspace/tezos () $ ./octez-client  get balance for tz1So7udy2xhCWpsxa8GLbgjKAV5LERo7q4H
Disclaimer:
  The  Tezos  network  is  a  new  blockchain technology.
  Users are  solely responsible  for any risks associated
  with usage of the Tezos network.  Users should do their
  own  research to determine  if Tezos is the appropriate
  platform for their needs and should apply judgement and
  care in their network interactions.

111658.123966 ꜩ

Merge request reports