@@ -86,29 +86,29 @@ func (s *Suite) TestSnapGetAccountRange(t *utesting.T) {
8686 root : root ,
8787 startingHash : zero ,
8888 limitHash : ffHash ,
89- expAccounts : 86 ,
89+ expAccounts : 67 ,
9090 expFirst : firstKey ,
91- expLast : common .HexToHash ("0x445cb5c1278fdce2f9cbdb681bdd76c52f8e50e41dbd9e220242a69ba99ac099 " ),
91+ expLast : common .HexToHash ("0x622e662246601dd04f996289ce8b85e86db7bb15bb17f86487ec9d543ddb6f9a " ),
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 : 65 ,
99+ expAccounts : 49 ,
100100 expFirst : firstKey ,
101- expLast : common .HexToHash ("0x2e6fe1362b3e388184fd7bf08e99e74170b26361624ffd1c5f646da7067b58b6 " ),
101+ expLast : common .HexToHash ("0x445cb5c1278fdce2f9cbdb681bdd76c52f8e50e41dbd9e220242a69ba99ac099 " ),
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 : 44 ,
109+ expAccounts : 34 ,
110110 expFirst : firstKey ,
111- expLast : common .HexToHash ("0x1c3f74249a4892081ba0634a819aec9ed25f34c7653f5719b9098487e65ab595 " ),
111+ expLast : common .HexToHash ("0x2ef46ebd2073cecde499c2e8df028ad79a26d57bfaa812c4c6f7eb4c9617b913 " ),
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 : 86 ,
180+ expAccounts : 67 ,
181181 expFirst : firstKey ,
182- expLast : common .HexToHash ("0x445cb5c1278fdce2f9cbdb681bdd76c52f8e50e41dbd9e220242a69ba99ac099 " ),
182+ expLast : common .HexToHash ("0x622e662246601dd04f996289ce8b85e86db7bb15bb17f86487ec9d543ddb6f9a " ),
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 : 86 ,
191+ expAccounts : 67 ,
192192 expFirst : secondKey ,
193- expLast : common .HexToHash ("0x4615e5f5df5b25349a00ad313c6cd0436b6c08ee5826e33a018661997f85ebaa " ),
193+ expLast : common .HexToHash ("0x66192e4c757fba1cdc776e6737008f42d50370d3cd801db3624274283bf7cd63 " ),
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 : 84 ,
229+ expAccounts : 66 ,
230230 expFirst : firstKey ,
231- expLast : common .HexToHash ("0x580aa878e2f92d113a12c0a3ce3c21972b03dbe80786858d49a72097e2c491a3 " ),
231+ expLast : common .HexToHash ("0x729953a43ed6c913df957172680a17e5735143ad767bda8f58ac84ec62fbec5e " ),
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 ("0x3e963a69401a70224cbfb8c0cc2249b019041a538675d71ccf80c9328d114e2e " ),
661- common .HexToHash ("0xd0670d09cdfbf3c6320eb3e92c47c57baa6c226551a2d488c05581091e6b1689 " ),
660+ common .HexToHash ("0x5bdc0d6057b35642a16d27223ea5454e5a17a400e28f7328971a5f2a87773b76 " ),
661+ common .HexToHash ("0x0a76c9812ca90ffed8ee4d191e683f93386b6e50cfe3679c0760d27510aa7fc5 " ),
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 ("0xd0670d09cdfbf3c6320eb3e92c47c57baa6c226551a2d488c05581091e6b1689 " ),
682- common .HexToHash ("0x3e963a69401a70224cbfb8c0cc2249b019041a538675d71ccf80c9328d114e2e " ),
681+ common .HexToHash ("0x0a76c9812ca90ffed8ee4d191e683f93386b6e50cfe3679c0760d27510aa7fc5 " ),
682+ common .HexToHash ("0x5bdc0d6057b35642a16d27223ea5454e5a17a400e28f7328971a5f2a87773b76 " ),
683683 },
684684 },
685685
0 commit comments