2024-07-24 16:47:39.016037 Sleeping now, awaiting pulse quorum to generate blocks, blockchain height is 411
2024-07-24 16:48:09.049308 Waking up after sleeping for 30s, blockchain height is 413
127.104.111.181:1100 => {'jsonrpc': '2.0', 'id': '0', 'method': 'bls_rewards_request', 'params': {'address': 'f39Fd6e51aad88F6F4ce6aB8827279cffFb92266'}}
2024-07-24 16:48:09.155890 {'id': '0', 'jsonrpc': '2.0', 'result': {'address': 'f39fd6e51aad88f6f4ce6ab8827279cfffb92266', 'amount': 1767942398, 'height': 412, 'msg_to_sign': '626464393764316536623833303463663737653037323763646330643561636362336138613339323766633062383466613965643166653936643866303036646633396664366535316161643838663666346365366162383832373237396366666662393232363630303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303639363061386665', 'non_signer_indices': [], 'signature': '1144e090cae58b0b989a337da1c16e7ebe28914417f7f97671709f6823ac12670f43c366bb9617599d7c45a01ca8b1fad4dbb5de4aa062cfb0fb6e962570b92d26c7f5778ab187c018fb8e96d6bca925fd239f26521b3839dfb1e05884bb91d701013af95d4743097dd6032a5377f91164b5dbdfe3a443896ae0cb517ffeffa2', 'status': 'OK'}}
2024-07-24 16:48:09.163003 Contract rewards before updating has ['available', 'claimed'] respectively: [0, 0] for f39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-07-24 16:48:09.202763 Foundation pool balance: 40000000000000000
2024-07-24 16:48:09.207632 Rewards contract balance: 121767942498
2024-07-24 16:48:09.339393 Contract rewards update executed, has ['available', 'claimed'] now respectively: [1767942398, 0] for f39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-07-24 16:48:09.345096 Balance for '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' before claim 59999878232057502
2024-07-24 16:48:09.373062 Contract rewards after claim is now ['available', 'claimed'] respectively: [1767942398, 1767942398] for 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-07-24 16:48:09.377876 Balance for '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' after claim 59999879999999900
2024-07-24 16:48:09.377916 Done.
2024-07-24 16:48:09.377926 Local Devnet SN network setup complete!
2024-07-24 16:48:09.377936 Communicate with daemon on ip: 127.104.111.181 port: 1105
There was a bug in the XPK map initialisation when hitting HF21. We were processing transactions first before initialising the map. Hence if we had a registration in the forking block, then, that'd insert the x25519 key into the map and cause the initialisation branch to not execute since the map had at least 1 key in it.
Fix RewardsContract::serviceNodes incorrectly padding input with 16 bytes instead of 32 bytes of 0.
Remove some work-arounds for the L2 tracker on localdev to make it manage state more correctly
Handle the new addedTimestamp field in the ServiceNode blob in the smart contract
Use the new allServiceNodeIDs API on the smart contract to avoid slamming the node with RPC requests
For localdev anecdotally looks like it took around 104ms to service the request which is a bit slow .. but there's more to the RPC request than just the allServiceNodeIDs call.
Goes ontop of https://github.com/oxen-io/oxen-core/pull/1694
This gets the rewards claim working on localdev
addedTimestamp
field in the ServiceNode blob in the smart contractallServiceNodeIDs
API on the smart contract to avoid slamming the node with RPC requestsFor localdev anecdotally looks like it took around 104ms to service the request which is a bit slow .. but there's more to the RPC request than just the
allServiceNodeIDs
call.