diff --git a/integration/mainnet/debug_accountRange/test_06.json b/integration/mainnet/debug_accountRange/test_06.json new file mode 100644 index 00000000..c712f605 --- /dev/null +++ b/integration/mainnet/debug_accountRange/test_06.json @@ -0,0 +1,54 @@ +[ + { + "request": { + "id": 1, + "jsonrpc": "2.0", + "method": "debug_accountRange", + "params": [ + "0x3D08FF", + [ + 236, + 231, + 1, + 199, + 107, + 208, + 13, + 28, + 63, + 150, + 65, + 10, + 12, + 105, + 234, + 141, + 252, + 245, + 243, + 78 + ], + 1, + true, + true + ] + }, + "response": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "accounts": { + "0xece701c76bd00d1c3f96410a0c69ea8dfcf5f34e": { + "balance": "1868317402361629371210", + "codeHash": "0x5ffee6f38fc3aecdd6a03f92fb6f05b24f10a5c91a5653e731c359819bb4acc6", + "nonce": 1, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + } + }, + "next": "7OcC3AyXISBGb05hUw3j4nvSuiE=", + "root": "0xab9325d81b9e613fe175173dfb03b5a3cad9cc86492237e9b71b18dc3d6d67a1" + } + + } + } +] diff --git a/integration/mainnet/debug_accountRange/test_07.json b/integration/mainnet/debug_accountRange/test_07.json new file mode 100644 index 00000000..186fb206 --- /dev/null +++ b/integration/mainnet/debug_accountRange/test_07.json @@ -0,0 +1,84 @@ +[ + { + "request": { + "id": 1, + "jsonrpc": "2.0", + "method": "debug_accountRange", + "params": [ + "0x3D08FF", + [ + 236, + 231, + 1, + 199, + 107, + 208, + 13, + 28, + 63, + 150, + 65, + 10, + 12, + 105, + 234, + 141, + 252, + 245, + 243, + 78 + ], + 6, + true, + true + ] + }, + "response": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "accounts": { + "0xece701c76bd00d1c3f96410a0c69ea8dfcf5f34e": { + "balance": "1868317402361629371210", + "codeHash": "0x5ffee6f38fc3aecdd6a03f92fb6f05b24f10a5c91a5653e731c359819bb4acc6", + "nonce": 1, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + }, + "0xece702dc0c972120466f4e61530de3e27bd2ba21": { + "balance": "200000000200000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + }, + "0xece70a1e2dc03beff168edb17b7134cb157def19": { + "balance": "289118000000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + }, + "0xece70fb711aa073da1838a2d10e243b75c697f27": { + "balance": "44494037897103591", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 29, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + }, + "0xece711fa31fed51bcb5aa0bae95d51e1f86c2b1d": { + "balance": "5000000000000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 0, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + }, + "0xece71361960d310a91844669ca2e0abb0e5c10d5": { + "balance": "0", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 4, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + } + }, + "next": "7OcVQmfdV7fmE+ojJgJaVh0Rr4o=", + "root": "0xab9325d81b9e613fe175173dfb03b5a3cad9cc86492237e9b71b18dc3d6d67a1" + } + + } + } +] diff --git a/integration/mainnet/debug_accountRange/test_08.json b/integration/mainnet/debug_accountRange/test_08.json new file mode 100644 index 00000000..7674dfaf --- /dev/null +++ b/integration/mainnet/debug_accountRange/test_08.json @@ -0,0 +1,55 @@ +[ + { + "request": { + "id": 1, + "jsonrpc": "2.0", + "method": "debug_accountRange", + "params": [ + "0x3D08FF", + [ + 236, + 231, + 1, + 199, + 107, + 208, + 13, + 28, + 63, + 150, + 65, + 10, + 12, + 105, + 234, + 141, + 252, + 245, + 243, + 78 + ], + 1, + false, + true + ] + }, + "response": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "accounts": { + "0xece701c76bd00d1c3f96410a0c69ea8dfcf5f34e": { + "balance": "1868317402361629371210", + "code": "0x6060604052361561019b5763ffffffff60e060020a60003504166315c12d4d81146101d857806323214fab146101fa578063268d50fe1461021c57806327dc297e14610231578063301cf6e71461028a57806331375242146102ae57806338bbfa50146102cc5780633a4f6999146103625780633c314a91146103845780634025b5a8146103b257806343c1598d146103c75780634b7fcee7146103e95780634f44728d1461040057806355b930311461041e5780635e968a491461044057806361d027b314610455578063666f4cad146104815780636cdf4c90146104a35780636eacd48a146104b85780637072a977146104cf5780637ac37d58146104f85780638b7afe2e146105195780638da5cb5b1461053b5780639619367d14610567578063a5f4af3314610589578063b539cd55146105ad578063befa1e2f146105cf578063c3de1ab9146105f1578063cf832ce214610615578063d207e7571461063c578063d263b7eb14610657578063d667dcd714610669578063dc6dd1521461068b578063e5c774de14610698578063ed62f501146106ba575b6101d65b60035433600160a060020a039081169116146101bb5760006000fd5b6101c7600454346106dc565b6004556101d26106ff565b5b5b565b005b34156101e057fe5b6101e8610713565b60408051918252519081900360200190f35b341561020257fe5b6101e8610719565b60408051918252519081900360200190f35b341561022457fe5b6101d660043561071f565b005b341561023957fe5b60408051602060046024803582810135601f81018590048502860185019096528585526101d6958335959394604494939290920191819084018382808284375094965061074595505050505050565b005b341561029257fe5b61029a610775565b604080519115158252519081900360200190f35b34156102b657fe5b6101d6600160a060020a0360043516610785565b005b34156102d457fe5b60408051602060046024803582810135601f81018590048502860185019096528585526101d6958335959394604494939290920191819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979998810197919650918201945092508291508401838280828437509496506107c195505050505050565b005b341561036a57fe5b6101e86111d3565b60408051918252519081900360200190f35b341561038c57fe5b6101e8600160a060020a03600435166111d8565b60408051918252519081900360200190f35b34156103ba57fe5b6101d66004356111f7565b005b34156103cf57fe5b6101e861121d565b60408051918252519081900360200190f35b34156103f157fe5b6101d66004351515611224565b005b341561040857fe5b6101d6600160a060020a036004351661126d565b005b341561042657fe5b6101e86112a9565b60408051918252519081900360200190f35b341561044857fe5b6101d66004356112ae565b005b341561045d57fe5b6104656112ec565b60408051600160a060020a039092168252519081900360200190f35b341561048957fe5b6101e86112fb565b60408051918252519081900360200190f35b34156104ab57fe5b6101d6600435611301565b005b34156104c057fe5b6101d66004351515611327565b005b34156104d757fe5b6104df611370565b6040805163ffffffff9092168252519081900360200190f35b341561050057fe5b6101d6600160a060020a0360043516602435611383565b005b341561052157fe5b6101e8611423565b60408051918252519081900360200190f35b341561054357fe5b610465611429565b60408051600160a060020a039092168252519081900360200190f35b341561056f57fe5b6101e8611438565b60408051918252519081900360200190f35b341561059157fe5b61029a61143e565b604080519115158252519081900360200190f35b34156105b557fe5b6101e86114cd565b60408051918252519081900360200190f35b34156105d757fe5b6101e86114d3565b60408051918252519081900360200190f35b34156105f957fe5b61029a6114d9565b604080519115158252519081900360200190f35b341561061d57fe5b6101d6600435600160a060020a03602435166044356064356114e9565b005b341561064457fe5b6101d663ffffffff60043516611585565b005b341561065f57fe5b6101d66115d6565b005b341561067157fe5b6101e8611603565b60408051918252519081900360200190f35b6101d6600435611609565b005b34156106a057fe5b6101e86118d9565b60408051918252519081900360200190f35b34156106c257fe5b6101e86118df565b60408051918252519081900360200190f35b60006106e883836118e5565b15156106f45760006000fd5b508181015b92915050565b600754600454620f424091025b046006555b565b600b5481565b60075481565b60025433600160a060020a0390811691161461073b5760006000fd5b60058190555b5b50565b610770828260006040518059106107595750595b908082528060200260200182016040525b506107c1565b5b5050565b60025460a060020a900460ff1681565b60025433600160a060020a039081169116146107a15760006000fd5b60038054600160a060020a031916600160a060020a0383161790555b5b50565b6107c96125a6565b60006107d36118f3565b600160a060020a031633600160a060020a03161415156107f35760006000fd5b60025460a060020a900460ff161515600114156108105760006000fd5b6000858152600d6020526040902054600160a060020a031615156108345760006000fd5b61083d84611a2f565b91506108aa6108686040604051908101604052806001815260200160f860020a605d02815250611a2f565b61089e6108916040604051908101604052806001815260200160f860020a605b02815250611a2f565b859063ffffffff611a5816565b9063ffffffff611ac416565b5061090a6109056109006108f3604060405190810160405280600281526020017f2c20000000000000000000000000000000000000000000000000000000000000815250611a2f565b859063ffffffff611b2d16565b611b48565b611ba4565b905061098761090561090061093b6040604051908101604052806001815260200160f860020a605d02815250611a2f565b61089e6109646040604051908101604052806001815260200160f860020a605b02815250611a2f565b879063ffffffff611a5816565b9063ffffffff611ac416565b611b48565b611ba4565b600086815260126020908152604080832093909355600d81528282208054600e83528484208054600160a060020a03909216600160a060020a0319928316179055815416905560158152828220805460169092529282209081559155600a5490546109f29190611bb9565b600a5560008581526010602090815260408083208054601184528285205583905560129091529020541580610a2657508351155b80610a3057508251155b15610cce576000858152600e6020908152604080832054600f83528184205460138452828520546012855283862054601186529584902054845182815280870188905294850181905260036060860181905260a0608087018181528c51918801919091528b51600160a060020a039096169894978a97600080516020612733833981519152979596958e93919260c0840191908501908083838215610af0575b805182526020831115610af057601f199092019160209182019101610ad0565b505050905090810190601f168015610b1c5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a46000858152600e60209081526040808320546011909252808320549051600160a060020a039092169281156108fc029290818181858888f193505050501515610cc9576000858152600e6020908152604080832054600f83528184205460138452828520546012855283862054601186529584902054845182815280870188905294850181905260046060860181905260a0608087018181528c51918801919091528b51600160a060020a039096169894978a97600080516020612733833981519152979596958e93919260c0840191908501908083838215610c2b575b805182526020831115610c2b57601f199092019160209182019101610c0b565b505050905090810190601f168015610c575780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a46000858152600e6020908152604080832054600160a060020a031683526014825280832054888452601190925290912054610ca391906106dc565b6000868152600e6020908152604080832054600160a060020a0316835260149091529020555b6111c8565b6000858152601360209081526040808320546012909252909120541015610ff957600454600086815260166020526040902054610d0b9190611bb9565b600455600b54600086815260166020526040902054610d2a91906106dc565b600b55600085815260166020908152604080832054601190925290912054610d5291906106dc565b6000868152601660208181526040808420859055600e825280842054600f8352818520546013845282862054601285529583902054948452825186815280850186905292830187905260016060840181905260a0608085018181528c51918601919091528b51600160a060020a039094169892978a9760008051602061273383398151915297919690958e93919260c0840191908501908083838215610e13575b805182526020831115610e1357601f199092019160209182019101610df3565b505050905090810190601f168015610e3f5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a4610e586106ff565b6000858152600e60209081526040808320546016909252808320549051600160a060020a039092169281156108fc029290818181858888f193505050501515610cc9576000858152600e6020908152604080832054600f83528184205460138452828520546012855283862054601686529584902054845182815280870188905294850181905260026060860181905260a0608087018181528c51918801919091528b51600160a060020a039096169894978a97600080516020612733833981519152979596958e93919260c0840191908501908083838215610f56575b805182526020831115610f5657601f199092019160209182019101610f36565b505050905090810190601f168015610f825780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a46000858152600e6020908152604080832054600160a060020a031683526014825280832054888452601690925290912054610ca391906106dc565b6000868152600e6020908152604080832054600160a060020a0316835260149091529020555b6111c8565b600085815260136020908152604080832054601290925290912054106111c8576000858152600e6020908152604080832054600f83528184205460138452828520546012855283862054601186528487205485518381528088018390529586018190526060860188905260a0608087018181528c51918801919091528b51600160a060020a039096169894978a9760008051602061273383398151915297959694959394938e93919260c08401919085019080838382156110d5575b8051825260208311156110d557601f1990920191602091820191016110b5565b505050905090810190601f1680156111015780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a46004546000868152601160205260409020546111329190600019016106dc565b60045561113d6106ff565b6000858152600e6020526040808220549051600160a060020a03909116919060019082818181858883f193505050501515610cc9576000858152600e6020908152604080832054600160a060020a031683526014909152902054610ca39060016106dc565b6000868152600e6020908152604080832054600160a060020a0316835260149091529020555b5b5b5b5b5050505050565b606381565b600160a060020a0381166000908152601460205260409020545b919050565b60025433600160a060020a039081169116146112135760006000fd5b60048190555b5b50565b620f424081565b60025433600160a060020a039081169116146112405760006000fd5b6002805474ff0000000000000000000000000000000000000000191660a060020a831515021790555b5b50565b60025433600160a060020a039081169116146112895760006000fd5b60028054600160a060020a031916600160a060020a0383161790555b5b50565b600281565b60025433600160a060020a039081169116146112ca5760006000fd5b6127108111156112da5760006000fd5b60078190556107416106ff565b5b5b50565b600354600160a060020a031681565b600c5481565b60025433600160a060020a0390811691161461131d5760006000fd5b60088190555b5b50565b60025433600160a060020a039081169116146113435760006000fd5b6001805474ff0000000000000000000000000000000000000000191660a060020a831515021790555b5b50565b60015460a860020a900463ffffffff1681565b60025433600160a060020a0390811691161461139f5760006000fd5b6113ab60045482611bb9565b6004556113b66106ff565b604051600160a060020a0383169082156108fc029083906000818181858888f1935050505015156113e75760006000fd5b6040518190600160a060020a038416907f42c501a185f41a8eb77b0a3e7b72a6435ea7aa752f8a1a0a13ca4628495eca9190600090a35b5b5050565b60045481565b600254600160a060020a031681565b60085481565b60006000600260149054906101000a900460ff1615156001151514156114645760006000fd5b50600160a060020a033316600081815260146020526040808220805490839055905190929183919081818185876185025a03f192505050156114a957600191506114c7565b600160a060020a033316600090815260146020526040812082905591505b5b5b5090565b60065481565b60095481565b60015460a060020a900460ff1681565b60025433600160a060020a039081169116146115055760006000fd5b611511600a5483611bb9565b600a55604051600160a060020a0384169082156108fc029083906000818181858888f1935050505015156115455760006000fd5b6040518190600160a060020a0385169086907f7b6ccf85690b8ce1b7d21a94ca738803a9da7dc74e10140f269efa0d8d6fb85190600090a45b5b50505050565b60025433600160a060020a039081169116146115a15760006000fd5b6001805478ffffffff000000000000000000000000000000000000000000191660a860020a63ffffffff8416021790555b5b50565b60025433600160a060020a039081169116146115f25760006000fd5b600254600160a060020a0316ff5b5b565b60055481565b6001805460009160a060020a90910460ff16151514156116295760006000fd5b3482600654826103e860055485611641866001611bb9565b61164c876001611bb9565b606403880281151561165a57fe5b04010281151561166657fe5b04031180611675575060085482105b806116805750600281105b8061168b5750606381115b156116965760006000fd5b60045460408051808201909152600381527f55524c000000000000000000000000000000000000000000000000000000000060208201526001546116f092916116eb9160a860020a900463ffffffff16611bdc565b611bb9565b600455600980546001019055600c805434019055604080518082018252600681527f6e6573746564000000000000000000000000000000000000000000000000000060208083019190915282516101e081019093526101b480845261176c93916127539083013960015460a860020a900463ffffffff16611d7f565b6000818152600f6020908152604080832084905560138252808320889055601082528083203490819055600d9092529091208054600160a060020a03191633600160a060020a0316179055600554919450906103e890826117ce886001611bb9565b6117d9896001611bb9565b60640334028115156117e757fe5b0401028115156117f357fe5b60008681526015602052604090209190049190910390819055600a54611818916106dc565b600a819055600454901061182c5760006000fd5b60008381526010602090815260408083205460159092529091205461185191906106dc565b6000848152600d6020908152604080832054600f83528184205460158452828520546010855283862054601386529584902054845191825294810195909552848301939093529051600160a060020a03909116927f1cb5bfc4e69cbacf65c8e05bdb84d7a327bd6bb4c034ff82359aefd7443775c4919081900360600190a45b5b50505b5050565b6103e881565b600a5481565b808201829010155b92915050565b60008054600160a060020a0316158061191e575060005461191c90600160a060020a03166120b0565b155b1561192f5761192d60006120b8565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561198a57fe5b60325a03f1151561199757fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840181905284517fc281d19e000000000000000000000000000000000000000000000000000000008152945191909216945063c281d19e9360048082019493918390030190829087803b1515611a1457fe5b60325a03f11515611a2157fe5b5050604051519150505b5b90565b611a376125a6565b50604080518082019091528151815260208281019082018190525b50919050565b611a606125a6565b81518351600091901015611a7657839150611abd565b506020808301519084015160019114611a9e5750815160208481015190840151829020919020145b8015611ab95782518451038452825160208501805190910190525b8391505b5092915050565b611acc6125a6565b8151835160009182911015611ae357849250611b25565b50508151835160208086015190850151910191909103906001908214611b13575082516020840151819020908220145b8015611b2157835185510385525b8492505b505092915050565b611b356125a6565b611abd8383836122b5565b505b92915050565b611b506125bd565b611b586125bd565b60008360000151604051805910611b6c5750595b908082528060200260200182016040525b509150602082019050611b998185602001518660000151612329565b8192505b5050919050565b6000611bb1826000612372565b90505b919050565b6000611bc583836124f4565b1515611bd15760006000fd5b508082035b92915050565b60008054600160a060020a03161580611c075750600054611c0590600160a060020a03166120b0565b155b15611c1857611c1660006120b8565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611c7357fe5b60325a03f11515611c8057fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840152835160e260020a630bbceb330281526024810188905260048101948552885160448201528851919092169450632ef3accc938893889391928392606401918601908083838215611d19575b805182526020831115611d1957601f199092019160209182019101611cf9565b505050905090810190601f168015611d455780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515611d6157fe5b60325a03f11515611d6e57fe5b5050604051519150505b5b92915050565b600080548190600160a060020a03161580611dac5750600054611daa90600160a060020a03166120b0565b155b15611dbd57611dbb60006120b8565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611e1857fe5b60325a03f11515611e2557fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840152835160e260020a630bbceb3302815260248101899052600481019485528a5160448201528a51919092169450632ef3accc938a93899391928392606401918601908083838215611ebe575b805182526020831115611ebe57601f199092019160209182019101611e9e565b505050905090810190601f168015611eea5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515611f0657fe5b60325a03f11515611f1357fe5b505060405151915050670de0b6b3a76400003a840201811115611f3957600091506120a7565b600160009054906101000a9004600160a060020a0316600160a060020a031663c51be90f8260008888886000604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360008314611fd9575b805182526020831115611fd957601f199092019160209182019101611fb9565b505050905090810190601f1680156120055780820380516001836020036101000a031916815260200191505b5083810382528551815285516020918201918701908083838215612044575b80518252602083111561204457601f199092019160209182019101612024565b505050905090810190601f1680156120705780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561208e57fe5b61235a5a03f1151561209c57fe5b505060405151935050505b5b509392505050565b803b5b919050565b600060006120d9731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6120b0565b111561210d575060008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560016111f2565b600061212c73c03a2615d5efaf5f49f60b7bb6583eaec212fdf16120b0565b1115612160575060008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560016111f2565b600061217f73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6120b0565b11156121b3575060008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560016111f2565b60006121d2736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756120b0565b1115612206575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47517905560016111f2565b60006122257320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6120b0565b1115612259575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf17905560016111f2565b60006122787351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6120b0565b11156122ac575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa17905560016111f2565b5060005b919050565b6122bd6125a6565b60006122db85600001518660200151866000015187602001516124ff565b60208087018051918601919091528051820385528651905191925001811415612307576000855261231d565b8351835186519101900385528351810160208601525b8291505b509392505050565b60005b6020821061234e5782518452602093840193909201915b60208203915061232c565b6001826020036101000a039050801983511681855116818117865250505b50505050565b600061237c6125bd565b5082600080805b83518110156124d45783517f3000000000000000000000000000000000000000000000000000000000000000908590839081106123bc57fe5b90602001015160f860020a900460f860020a02600160f860020a03191610158015612432575083517f39000000000000000000000000000000000000000000000000000000000000009085908390811061241257fe5b90602001015160f860020a900460f860020a02600160f860020a03191611155b1561248c57811561245157851515612449576124d4565b600019909501945b5b600a830292506030848281518110151561246857fe5b90602001015160f860020a900460f860020a0260f860020a900403830192506124ca565b838181518110151561249a57fe5b90602001015160f860020a900460f860020a02600160f860020a031916602e60f860020a0214156124ca57600191505b5b5b600101612383565b60008611156124e65785600a0a830292505b8294505b5050505092915050565b818111155b92915050565b60008080808088871161259257602087116125565760018760200360080260020a031980875116888b038a018a96505b81838851161461254b57600187019681901061252f578b8b0196505b50505083945061259a565b8686209150879350600092505b86890383116125925750858320818114156125805783945061259a565b6001840193505b600190920191612563565b5b5b88880194505b50505050949350505050565b604080518082019091526000808252602082015290565b60408051602081019091526000815290565b60408051602081019091526000815290565b600054600160a060020a0316158061260b575060005461260990600160a060020a03166120b0565b155b1561261c5761261a60006120b8565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561267757fe5b60325a03f1151561268457fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190557f688dcfd70000000000000000000000000000000000000000000000000000000083527fff000000000000000000000000000000000000000000000000000000000000008616600484015292519216925063688dcfd791602480830192600092919082900301818387803b151561271d57fe5b60325a03f1151561157e57fe5b5050505b5b5056008dd0b145385d04711e29558ceab40b456976a2b9a7d648cc1bcd416161bf97b95b55524c5d205b276a736f6e2868747470733a2f2f6170692e72616e646f6d2e6f72672f6a736f6e2d7270632f312f696e766f6b65292e726573756c742e72616e646f6d5b2273657269616c4e756d626572222c2264617461225d272c20275c6e7b226a736f6e727063223a22322e30222c226d6574686f64223a2267656e65726174655369676e6564496e746567657273222c22706172616d73223a7b226170694b6579223a247b5b646563727970745d20424c54722b5a744d4f4c503253515658783847527363597558762b337759357a64466772515a4e4d4d59336f4f2f3643374f6f516b6775334b67664275694a5757315333552f2b7961313058464748763250374d423756597746495a6433564f4d492f4f73386f31754a436447475a67705230446b6d35516f4e48374d62444d3077613252657742716c564c46476f5a5831504a432b696742504e6f4843343d7d2c226e223a312c226d696e223a312c226d6178223a3130302c227265706c6163656d656e74223a747275652c2262617365223a3130247b5b6964656e746974795d20227d227d2c226964223a31247b5b6964656e746974795d20227d227d275da165627a7a72305820d8db97e41127d33db5325f51e69cbbdc5918174d09fd31abff36f8d0c7fc4d9f0029", + "codeHash": "0x5ffee6f38fc3aecdd6a03f92fb6f05b24f10a5c91a5653e731c359819bb4acc6", + "nonce": 1, + "root": "0x0000000000000000000000000000000000000000000000000000000000000000" + } + }, + "next": "7OcC3AyXISBGb05hUw3j4nvSuiE=", + "root": "0xab9325d81b9e613fe175173dfb03b5a3cad9cc86492237e9b71b18dc3d6d67a1" + } + + } + } +] diff --git a/integration/mainnet/debug_accountRange/test_09.tar b/integration/mainnet/debug_accountRange/test_09.tar new file mode 100644 index 00000000..a0e59626 Binary files /dev/null and b/integration/mainnet/debug_accountRange/test_09.tar differ diff --git a/integration/mainnet/debug_accountRange/test_10.json b/integration/mainnet/debug_accountRange/test_10.json new file mode 100644 index 00000000..09a606b8 --- /dev/null +++ b/integration/mainnet/debug_accountRange/test_10.json @@ -0,0 +1,53 @@ +[ + { + "request": { + "id": 1, + "jsonrpc": "2.0", + "method": "debug_accountRange", + "params": [ + "0x3D08FF", + [ + 236, + 231, + 1, + 199, + 199, + 199, + 13, + 28, + 63, + 150, + 65, + 10, + 12, + 105, + 234, + 141, + 252, + 245, + 243, + 78 + ], + 1, + true, + false + ] + }, + "response": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "accounts": { + "0xece702dc0c972120466f4e61530de3e27bd2ba21": { + "balance": "200000000200000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + } + }, + "next": "7OcKHi3AO+/xaO2xe3E0yxV97xk=", + "root": "0xab9325d81b9e613fe175173dfb03b5a3cad9cc86492237e9b71b18dc3d6d67a1" + } + } + } +] diff --git a/integration/mainnet/debug_accountRange/test_11.json b/integration/mainnet/debug_accountRange/test_11.json new file mode 100644 index 00000000..aa9dcf53 --- /dev/null +++ b/integration/mainnet/debug_accountRange/test_11.json @@ -0,0 +1,110 @@ +[ + { + "request": { + "id": 1, + "jsonrpc": "2.0", + "method": "debug_accountRange", + "params": [ + "0x3D08FF", + [ + 236, + 231, + 1, + 199, + 199, + 199, + 13, + 28, + 63, + 150, + 65, + 10, + 12, + 105, + 234, + 141, + 252, + 245, + 243, + 78 + ], + 10, + true, + false + ] + }, + "response": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "accounts": { + "0xece702dc0c972120466f4e61530de3e27bd2ba21": { + "balance": "200000000200000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece70a1e2dc03beff168edb17b7134cb157def19": { + "balance": "289118000000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece70fb711aa073da1838a2d10e243b75c697f27": { + "balance": "44494037897103591", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 29, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece711fa31fed51bcb5aa0bae95d51e1f86c2b1d": { + "balance": "5000000000000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 0, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece71361960d310a91844669ca2e0abb0e5c10d5": { + "balance": "0", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 4, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece7154267dd57b7e613ea2326025a561d11af8a": { + "balance": "0", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece71866b378cc1f8c4ca9b18e615b26d7a342c3": { + "balance": "0", + "codeHash": "0x1c2edb66afc46f3d7732d88b3286980bf426164634944c81db0b284382654a9a", + "nonce": 1, + "root": "0x36cef5dd09519db2743dc1d3df22625080dd9ab4d79840e3a3483e9f83f3f260", + "storage": { + "0x0000000000000000000000000000000000000000000000000000000000000000": "b2dccc685011c59927999480000d07161ecad10d" + } + }, + "0xece718c7b4252893d6390e569d7f127e4d4a8a12": { + "balance": "350017160000000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 2, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece719ee3604fae9e3ad0e72213bcf6cd1daa435": { + "balance": "10000000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece71bf683c32df4158b3c74f52eca43a4fa4251": { + "balance": "0", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + } + }, + "next": "7OccHV8SY/H0OL8pFdGA2HHH7Go=", + "root": "0xab9325d81b9e613fe175173dfb03b5a3cad9cc86492237e9b71b18dc3d6d67a1" + } + } + } +] diff --git a/integration/mainnet/debug_accountRange/test_12.tar b/integration/mainnet/debug_accountRange/test_12.tar new file mode 100644 index 00000000..5c022004 Binary files /dev/null and b/integration/mainnet/debug_accountRange/test_12.tar differ diff --git a/integration/mainnet/debug_accountRange/test_13.json b/integration/mainnet/debug_accountRange/test_13.json new file mode 100644 index 00000000..433f1a37 --- /dev/null +++ b/integration/mainnet/debug_accountRange/test_13.json @@ -0,0 +1,110 @@ +[ + { + "request": { + "id": 1, + "jsonrpc": "2.0", + "method": "debug_accountRange", + "params": [ + "0x7A1200", + [ + 236, + 231, + 1, + 199, + 199, + 199, + 13, + 28, + 63, + 150, + 65, + 10, + 12, + 105, + 234, + 141, + 252, + 245, + 243, + 78 + ], + 10, + true, + false + ] + }, + "response": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "accounts": { + "0xece701dadc801a644d90817bdcaab7b66541fa73": { + "balance": "748000000001000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece7020afea2b5eeff821747ac6d3204cc4a9450": { + "balance": "8950000000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece702139c4a867973f7277fe01b93ff5778e87c": { + "balance": "79195000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 4, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece7021ea3bc7e00021bfc9b12fa2ac5f097e6ad": { + "balance": "1692897713612496901", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 2, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece70221d6195bb90c57f2ff98458ffc3035d16b": { + "balance": "76463880000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 0, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece7024df9eb7c9d1092ff654656eb757c573a7b": { + "balance": "0", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece7024f91473a5b8ea80dbbec1798b3ffb0e9f4": { + "balance": "1137169779999900", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 15, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece702af07d07e6a890d3ba53ea2766cbb416d74": { + "balance": "0", + "codeHash": "0xa7e48f0d73eaf7c47528d6ab59ffae7b4aec13c5eb888b7359f014521767c848", + "nonce": 1, + "root": "0xf4894f5d93a9fad81ddc3c915bba04e8b24b153184b4a38622d4e353288b5379", + "storage": { + "0x0000000000000000000000000000000000000000000000000000000000000000": "4f01001cf69785d4c37f03fd87398849411ccbba" + } + }, + "0xece702be21521493c7df3de5f57e8149b98b89fa": { + "balance": "336654000000000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "0xece702dc0c972120466f4e61530de3e27bd2ba21": { + "balance": "200000000200000", + "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "nonce": 1, + "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + } + }, + "next": "7OcDguvvr5Lrnago74YXacQwIS8=", + "root": "0x7b814195793c699d345339dd7a4225112ad91b9ba7f03787563a9e98ba692e52" + } + } + } +] diff --git a/integration/mainnet/debug_accountRange/test_14.json b/integration/mainnet/debug_accountRange/test_14.json new file mode 100644 index 00000000..642b6806 --- /dev/null +++ b/integration/mainnet/debug_accountRange/test_14.json @@ -0,0 +1,57 @@ +[ + { + "request": { + "id": 1, + "jsonrpc": "2.0", + "method": "debug_accountRange", + "params": [ + "0x895445", + [ + 1, + 131, + 138, + 55, + 71, + 220, + 23, + 10, + 103, + 219, + 150, + 140, + 140, + 229, + 12, + 221, + 232, + 227, + 188, + 124 + ], + 1, + true, + false + ] + }, + "response": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "accounts": { + "0x01838a3747dc170a67db968c8ce50cdde8e3bc7c": { + "balance": "0", + "codeHash": "0x6616342f393c4c24c5920aa30e303a37c55734ed0ebcb1656727a7bb8e36c13f", + "nonce": 1, + "root": "0x8c1ad84c84b471f109e96a245f3e605b62207f1dd607001ffefa4e077527d072", + "storage": { + "0x0000000000000000000000000000000000000000000000000000000000000000": "3b476a3c49ead380967bb7eac4445e86a653c917", + "0x0000000000000000000000000000000000000000000000000000000000000001": "1bb133fec8f7a5463adbdb37a2dd2c502e9b979a" + } + } + }, + "next": "AYOKZL7dUqoc4KiScYCMSkob33w=", + "root": "0xed33613a2acb5b3bd53eb343c331fb161921db2a45d49793561c78bc7e27717a" + } + } + } +] diff --git a/integration/run_tests.py b/integration/run_tests.py index 75871e19..3d94fdb3 100755 --- a/integration/run_tests.py +++ b/integration/run_tests.py @@ -56,9 +56,9 @@ "mainnet/trace_rawTransaction/test_02.json", # as executed on latest block "mainnet/trace_rawTransaction/test_03.json", # as executed on latest block - "mainnet/trace_replayTransaction/test_24.json", # diff on gasCost on out of gas and ex:null + "mainnet/trace_replayTransaction/test_24.json", # diff on gasCost on last opcode (OUTOFGAS) - "mainnet/trace_replayBlockTransactions/test_01.tar", # diff on CALL gasCost, gasCost 0 + "mainnet/trace_replayBlockTransactions/test_01.tar", # diff on CALL gasCost + diff last opcode (OUTOFGAS) "mainnet/trace_replayBlockTransactions/test_03.tar", # diff on CALL gasCost "mainnet/trace_replayBlockTransactions/test_04.tar", # diff on 1 CALL gasCost "mainnet/trace_replayBlockTransactions/test_05.tar", # diff on 3 CALL gasCost @@ -73,6 +73,9 @@ "mainnet/trace_replayBlockTransactions/test_20.tar", # diff on CALL gasCost, sstore param "mainnet/trace_replayBlockTransactions/test_21.tar", # diff on 1 CALL gasCost + "mainnet/debug_accountRange/test_09.tar", # waiting approval FIX on Rpcdaemon + "mainnet/debug_accountRange/test_12.tar", # waiting approval FIX on Rpcdaemon + "mainnet/engine_getPayloadV1/test_01.json", # exception when invoke execution interface "mainnet/engine_getPayloadV2/test_01.json", # exception when invoke execution interface "mainnet/engine_forkchoiceUpdatedV1/test_01.json", # exception when invoke execution interface