-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug in resolving certain accounts
- Loading branch information
1 parent
b3bf07e
commit 71148dc
Showing
3 changed files
with
17 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,6 @@ | ||
# Command line perf testing reference | ||
# 16 Apr 2024 | ||
|
||
## 21. Feb 2022 - e97191192cc022452d2167beea24f06939cac6f8 | ||
dom = "0x5849ea89593cf65e13110690d9339c121801a45c" | ||
bns = "0x8A093E3A83F63A00FFFC4729AA55482845A49294" | ||
RemoteChain.RPCCache.get_account_root(Chains.Moonbeam, bns) | ||
|
||
```elixir | ||
rpc = fn method, args -> :timer.tc(fn -> Network.EdgeV2.handle_async_msg([method, Rlpx.num2bin(Chain.peak()) | args], nil) end) end | ||
id = <<237, 217, 116, 65, 255, 170, 122, 217, 206, 132, 246, 126, 210, 93, 83, 13, 230, 107, 130, 135>> | ||
slot1 = <<5, 127, 142, 10, 91, 52, 106, 14, 9, 229, 29, 19, 3, 97, 232, 18, 212, 29, 88, 37, 185, 216, 147, 129, 123, 167, 254, 18, 252, 9, 230, 157>> | ||
slot2 = <<27, 241, 228, 27, 25, 19, 64, 172, 238, 203, 185, 176, 129, 254, 154, 178, 131, 5, 167, 1, 226, 25, 216, 229, 150, 121, 1, 130, 59, 28, 70, 179>> | ||
slot3 = <<27, 241, 228, 27, 25, 19, 64, 172, 238, 203, 185, 176, 129, 254, 154, 178, 131, 5, 167, 1, 226, 25, 216, 229, 150, 121, 1, 130, 59, 28, 70, 180>> | ||
slot4 = <<27, 241, 228, 27, 25, 19, 64, 172, 238, 203, 185, 176, 129, 254, 154, 178, 131, 5, 167, 1, 226, 25, 216, 229, 150, 121, 1, 130, 59, 28, 70, 181>> | ||
|
||
> :timer.tc(fn -> Chain.with_peak(&Chain.Block.blockquick_window/1) end) |> elem(0) | ||
324 | ||
|
||
> rpc.("getstateroots", []) |> elem(0) | ||
124 | ||
|
||
> rpc.("getaccount", [id]) |> elem(0) | ||
200 | ||
|
||
> rpc.("getaccountroots", [id]) |> elem(0) | ||
900 | ||
|
||
> rpc.("getaccountvalue", [id, slot1]) |> elem(0) | ||
> rpc.("getaccountvalue", [id, slot2]) |> elem(0) | ||
900 | ||
|
||
> rpc.("getaccountvalues", [id, slot1, slot2, slot3, slot4]) |> elem(0) | ||
1000 | ||
|
||
> :timer.tc(fn -> | ||
rpc.("getaccountvalue", [id, slot1]) | ||
rpc.("getaccountvalue", [id, slot2]) | ||
rpc.("getaccountvalue", [id, slot3]) | ||
rpc.("getaccountvalue", [id, slot4]) | ||
end) |> elem(0) | ||
4000 | ||
|
||
## 2nd Aug 2023 BNS | ||
|
||
bns = Hash.to_address(0xAF60FAA5CD840B724742F1AF116168276112D6A6) | ||
rpc.("getaccountroots", [bns]) |> elem(0) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters