Skip to content

Conversation

@brenzi
Copy link
Collaborator

@brenzi brenzi commented Nov 17, 2023

  • add rpc method author_getShard
  • add rpc method author_getShardVault

merge first: #1497

testing

run worker and wait until event ProxyAdded

cargo install websocat
echo '{"jsonrpc":"2.0","method":"author_getShard","params":[],"id":1}' | websocat wss://127.0.0.1:2000 --insecure
# yields: {"jsonrpc":"2.0","result":"0x80a173624009fb6aded0457c70389f6999161234d25d473bf40d603262f9cb32430000","id":1}
# correct shard (ignore first byte above): BsEgkWdZW7oeG8VPvPWbDWgpKdybWHUucNnDGaaobqkv 
#0xa173624009fb6aded0457c70389f6999161234d25d473bf40d603262f9cb3243 

echo '{"jsonrpc":"2.0","method":"author_getShardVault","params":[],"id":1}' | websocat wss://127.0.0.1:2000 --insecure
# yields: {"jsonrpc":"2.0","result":"0x8086bde27ebc5be7df6013e82a8d09a4bf7157ecfd176dc0b6e06094d1cbe307ad0000","id":1}
# correct accountid (ignore first byte above: 2MHFBhKVz66RBJSo1awcE9XXCZpMagYGMcraDp1WaMDLtew4
# 0x86bde27ebc5be7df6013e82a8d09a4bf7157ecfd176dc0b6e06094d1cbe307ad

qed.

@brenzi brenzi added A0-core Affects a core part B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing labels Nov 17, 2023
@brenzi brenzi force-pushed the ab/expose-shard-vault-rpc-call branch from 8c97ec7 to 2ee1be5 Compare November 17, 2023 13:52
@brenzi brenzi requested a review from clangenb November 18, 2023 09:36
Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brenzi brenzi merged commit 9672c7e into master Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A0-core Affects a core part B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants