Skip to content

Kathmandu invoice

Fedor Sheremetyev requested to merge kathmandu-invoice into master

Context

Invoice to @g.b.fefe for code contributions included Kathmandu protocol proposal.

Manually testing the MR

Import snapshot of mainnet (Jakarta), migrate to Alpha, and check balance of invoiced account.

  1. Download and import snapshot.
$ wget https://mainnet.xtz-shots.io/mainnet-2523178.rolling
$ ./tezos-node snapshot import mainnet-2523178.rolling --block BKpVTvzDxZkRoJDEfL9HioSnBtVH25tFXddrJg9AibDnUP4jkpk
  1. Create "yes wallet", patch node to accept fake signatures.
$ dune exec scripts/yes-wallet/yes_wallet.exe -- create from context ~/.tezos-node in /tmp/yes-wallet --active-bakers-only
$ patch -p1 < scripts/yes-node.patch
  1. Configure protocol override for Alpha in the next level.
$ patch -p1 <<EOF
diff --git a/src/bin_node/node_config_file.ml b/src/bin_node/node_config_file.ml
index 32f3e02c80..d149788d10 100644
--- a/src/bin_node/node_config_file.ml
+++ b/src/bin_node/node_config_file.ml
@@ -89,0 +90 @@ let mainnet_user_activated_upgrades =
+    (2523179l, "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK");
EOF
  1. Build with $ make.

  2. Run tezos node in one terminal, bake migration block (for Alpha) with tezos client in another terminal.

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

$ ./tezos-client -d /tmp/yes-wallet bake for --minimal-timestamp

Observe activation of Kathmandu protocol, then Alpha in the Tezos node logs.

Jul 12 19:31:47.873 - validation: initializing protocol ProtoALphaAL...
Jul 12 19:31:47.874 - validator.block: block at level 2523179 successfully pre-applied
Jul 12 19:31:47.874 - validator.block: Request pushed on 2022-07-12T19:31:45.684-00:00, treated in 8.750us, completed in 2.190s 
Jul 12 19:31:48.533 - validator.block: block BM3pEp3gmpMMSGYnrWNt1k9NEqwToDBh9hmdWcd5e76ioTbgEUR successfully validated
Jul 12 19:31:48.534 - validator.block: Request pushed on 2022-07-12T19:31:48.412-00:00, treated in 3.958us, completed in 121ms 
Jul 12 19:31:48.536 - node.store: the protocol table was updated: protocol ProtoALphaAL (level 14) was
Jul 12 19:31:48.536 - node.store:   activated on block BM3pEp3gmpMMSGYnrWNt1k9NEqwToDBh9hmdWcd5e76ioTbgEUR
Jul 12 19:31:48.536 - node.store:   (level 2523179)
Jul 12 19:31:48.565 - validator.chain: Update current head to BM3pEp3gmpMMSGYnrWNt1k9NEqwToDBh9hmdWcd5e76ioTbgEUR (level 2523179, timestamp 2022-07-10T22:43:44-00:00, fitness 02::0026802b::::ffffffff::00000000), same branch
Jul 12 19:31:48.565 - validator.chain: Request pushed on 2022-07-12T19:31:48.533-00:00, treated in 102us, completed in 31.130ms 
  1. Check balance of invoiced account.
$ ./tezos-client get balance for tz1X81bCXPtMiHu1d4UZF4GPhMPkvkp56ssb
3000 ꜩ
Edited by Fedor Sheremetyev

Merge request reports