@@ -86,29 +86,29 @@ func (s *Suite) TestSnapGetAccountRange(t *utesting.T) {
8686 root : root ,
8787 startingHash : zero ,
8888 limitHash : ffHash ,
89- expAccounts : 67 ,
89+ expAccounts : 68 ,
9090 expFirst : firstKey ,
91- expLast : common .HexToHash ("0x622e662246601dd04f996289ce8b85e86db7bb15bb17f86487ec9d543ddb6f9a " ),
91+ expLast : common .HexToHash ("0x59312f89c13e9e24c1cb8b103aa39a9b2800348d97a92c2c9e2a78fa02b70025 " ),
9292 desc : "In this test, we request the entire state range, but limit the response to 4000 bytes." ,
9393 },
9494 {
9595 nBytes : 3000 ,
9696 root : root ,
9797 startingHash : zero ,
9898 limitHash : ffHash ,
99- expAccounts : 49 ,
99+ expAccounts : 50 ,
100100 expFirst : firstKey ,
101- expLast : common .HexToHash ("0x445cb5c1278fdce2f9cbdb681bdd76c52f8e50e41dbd9e220242a69ba99ac099 " ),
101+ expLast : common .HexToHash ("0x4615e5f5df5b25349a00ad313c6cd0436b6c08ee5826e33a018661997f85ebaa " ),
102102 desc : "In this test, we request the entire state range, but limit the response to 3000 bytes." ,
103103 },
104104 {
105105 nBytes : 2000 ,
106106 root : root ,
107107 startingHash : zero ,
108108 limitHash : ffHash ,
109- expAccounts : 34 ,
109+ expAccounts : 35 ,
110110 expFirst : firstKey ,
111- expLast : common .HexToHash ("0x2ef46ebd2073cecde499c2e8df028ad79a26d57bfaa812c4c6f7eb4c9617b913 " ),
111+ expLast : common .HexToHash ("0x2de4bdbddcfbb9c3e195dae6b45f9c38daff897e926764bf34887fb0db5c3284 " ),
112112 desc : "In this test, we request the entire state range, but limit the response to 2000 bytes." ,
113113 },
114114 {
@@ -177,9 +177,9 @@ The server should return the first available account.`,
177177 root : root ,
178178 startingHash : firstKey ,
179179 limitHash : ffHash ,
180- expAccounts : 67 ,
180+ expAccounts : 68 ,
181181 expFirst : firstKey ,
182- expLast : common .HexToHash ("0x622e662246601dd04f996289ce8b85e86db7bb15bb17f86487ec9d543ddb6f9a " ),
182+ expLast : common .HexToHash ("0x59312f89c13e9e24c1cb8b103aa39a9b2800348d97a92c2c9e2a78fa02b70025 " ),
183183 desc : `In this test, startingHash is exactly the first available account key.
184184The server should return the first available account of the state as the first item.` ,
185185 },
@@ -188,9 +188,9 @@ The server should return the first available account of the state as the first i
188188 root : root ,
189189 startingHash : hashAdd (firstKey , 1 ),
190190 limitHash : ffHash ,
191- expAccounts : 67 ,
191+ expAccounts : 68 ,
192192 expFirst : secondKey ,
193- expLast : common .HexToHash ("0x66192e4c757fba1cdc776e6737008f42d50370d3cd801db3624274283bf7cd63 " ),
193+ expLast : common .HexToHash ("0x59a7c8818f1c16b298a054020dc7c3f403a970d1d1db33f9478b1c36e3a2e509 " ),
194194 desc : `In this test, startingHash is after the first available key.
195195The server should return the second account of the state as the first item.` ,
196196 },
@@ -226,9 +226,9 @@ server to return no data because genesis is older than 127 blocks.`,
226226 root : s .chain .RootAt (int (s .chain .Head ().Number ().Uint64 ()) - 127 ),
227227 startingHash : zero ,
228228 limitHash : ffHash ,
229- expAccounts : 66 ,
229+ expAccounts : 68 ,
230230 expFirst : firstKey ,
231- expLast : common .HexToHash ("0x729953a43ed6c913df957172680a17e5735143ad767bda8f58ac84ec62fbec5e " ),
231+ expLast : common .HexToHash ("0x683b6c03cc32afe5db8cb96050f711fdaff8f8ff44c7587a9a848f921d02815e " ),
232232 desc : `This test requests data at a state root that is 127 blocks old.
233233We expect the server to have this state available.` ,
234234 },
@@ -657,8 +657,8 @@ The server should reject the request.`,
657657 // It's a bit unfortunate these are hard-coded, but the result depends on
658658 // a lot of aspects of the state trie and can't be guessed in a simple
659659 // way. So you'll have to update this when the test chain is changed.
660- common .HexToHash ("0x5bdc0d6057b35642a16d27223ea5454e5a17a400e28f7328971a5f2a87773b76 " ),
661- common .HexToHash ("0x0a76c9812ca90ffed8ee4d191e683f93386b6e50cfe3679c0760d27510aa7fc5 " ),
660+ common .HexToHash ("0x4bdecec09691ad38113eebee2df94fadefdff5841c0f182bae1be3c8a6d60bf3 " ),
661+ common .HexToHash ("0x4178696465d4514ff5924ef8c28ce64d41a669634b63184c2c093e252d6b4bc4 " ),
662662 empty , empty , empty , empty , empty , empty , empty , empty , empty , empty , empty , empty ,
663663 empty , empty , empty , empty , empty , empty , empty , empty , empty , empty , empty , empty ,
664664 empty , empty , empty , empty , empty , empty , empty , empty , empty , empty , empty , empty ,
@@ -678,8 +678,8 @@ The server should reject the request.`,
678678 // be updated when the test chain is changed.
679679 expHashes : []common.Hash {
680680 empty ,
681- common .HexToHash ("0x0a76c9812ca90ffed8ee4d191e683f93386b6e50cfe3679c0760d27510aa7fc5 " ),
682- common .HexToHash ("0x5bdc0d6057b35642a16d27223ea5454e5a17a400e28f7328971a5f2a87773b76 " ),
681+ common .HexToHash ("0x4178696465d4514ff5924ef8c28ce64d41a669634b63184c2c093e252d6b4bc4 " ),
682+ common .HexToHash ("0x4bdecec09691ad38113eebee2df94fadefdff5841c0f182bae1be3c8a6d60bf3 " ),
683683 },
684684 },
685685
0 commit comments