mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
test(pending): add test for modified blockTimestamp
This commit is contained in:
parent
bdbd62b3da
commit
3e9c7de9af
1 changed files with 11 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ func allTransactionTypes(addr common.Address, config *params.ChainConfig) []txDa
|
|||
Want: `{
|
||||
"blockHash": null,
|
||||
"blockNumber": null,
|
||||
"blockTimestamp": null,
|
||||
"from": "0x71562b71999873db5b286df957af199ec94617f7",
|
||||
"gas": "0x7",
|
||||
"gasPrice": "0x6",
|
||||
|
|
@ -170,6 +171,7 @@ func allTransactionTypes(addr common.Address, config *params.ChainConfig) []txDa
|
|||
Want: `{
|
||||
"blockHash": null,
|
||||
"blockNumber": null,
|
||||
"blockTimestamp": null,
|
||||
"from": "0x71562b71999873db5b286df957af199ec94617f7",
|
||||
"gas": "0x7",
|
||||
"gasPrice": "0x6",
|
||||
|
|
@ -208,6 +210,7 @@ func allTransactionTypes(addr common.Address, config *params.ChainConfig) []txDa
|
|||
Want: `{
|
||||
"blockHash": null,
|
||||
"blockNumber": null,
|
||||
"blockTimestamp": null,
|
||||
"from": "0x71562b71999873db5b286df957af199ec94617f7",
|
||||
"gas": "0x7",
|
||||
"gasPrice": "0x6",
|
||||
|
|
@ -254,6 +257,7 @@ func allTransactionTypes(addr common.Address, config *params.ChainConfig) []txDa
|
|||
Want: `{
|
||||
"blockHash": null,
|
||||
"blockNumber": null,
|
||||
"blockTimestamp": null,
|
||||
"from": "0x71562b71999873db5b286df957af199ec94617f7",
|
||||
"gas": "0x7",
|
||||
"gasPrice": "0x6",
|
||||
|
|
@ -301,6 +305,7 @@ func allTransactionTypes(addr common.Address, config *params.ChainConfig) []txDa
|
|||
Want: `{
|
||||
"blockHash": null,
|
||||
"blockNumber": null,
|
||||
"blockTimestamp": null,
|
||||
"from": "0x71562b71999873db5b286df957af199ec94617f7",
|
||||
"gas": "0x7",
|
||||
"gasPrice": "0x9",
|
||||
|
|
@ -345,6 +350,7 @@ func allTransactionTypes(addr common.Address, config *params.ChainConfig) []txDa
|
|||
Want: `{
|
||||
"blockHash": null,
|
||||
"blockNumber": null,
|
||||
"blockTimestamp": null,
|
||||
"from": "0x71562b71999873db5b286df957af199ec94617f7",
|
||||
"gas": "0x7",
|
||||
"gasPrice": "0x9",
|
||||
|
|
@ -387,6 +393,7 @@ func allBlobTxs(addr common.Address, config *params.ChainConfig) []txData {
|
|||
Want: `{
|
||||
"blockHash": null,
|
||||
"blockNumber": null,
|
||||
"blockTimestamp": null,
|
||||
"from": "0x71562b71999873db5b286df957af199ec94617f7",
|
||||
"gas": "0x6",
|
||||
"gasPrice": "0x5",
|
||||
|
|
@ -3138,6 +3145,7 @@ func TestRPCMarshalBlock(t *testing.T) {
|
|||
{
|
||||
"blockHash": "0x9b73c83b25d0faf7eab854e3684c7e394336d6e135625aafa5c183f27baa8fee",
|
||||
"blockNumber": "0x64",
|
||||
"blockTimestamp": "0x0",
|
||||
"from": "0x0000000000000000000000000000000000000000",
|
||||
"gas": "0x457",
|
||||
"gasPrice": "0x2b67",
|
||||
|
|
@ -3158,6 +3166,7 @@ func TestRPCMarshalBlock(t *testing.T) {
|
|||
{
|
||||
"blockHash": "0x9b73c83b25d0faf7eab854e3684c7e394336d6e135625aafa5c183f27baa8fee",
|
||||
"blockNumber": "0x64",
|
||||
"blockTimestamp": "0x0",
|
||||
"from": "0x0000000000000000000000000000000000000000",
|
||||
"gas": "0x457",
|
||||
"gasPrice": "0x2b67",
|
||||
|
|
@ -3176,6 +3185,7 @@ func TestRPCMarshalBlock(t *testing.T) {
|
|||
{
|
||||
"blockHash": "0x9b73c83b25d0faf7eab854e3684c7e394336d6e135625aafa5c183f27baa8fee",
|
||||
"blockNumber": "0x64",
|
||||
"blockTimestamp": "0x0",
|
||||
"from": "0x0000000000000000000000000000000000000000",
|
||||
"gas": "0x457",
|
||||
"gasPrice": "0x2b67",
|
||||
|
|
@ -3196,6 +3206,7 @@ func TestRPCMarshalBlock(t *testing.T) {
|
|||
{
|
||||
"blockHash": "0x9b73c83b25d0faf7eab854e3684c7e394336d6e135625aafa5c183f27baa8fee",
|
||||
"blockNumber": "0x64",
|
||||
"blockTimestamp": "0x0",
|
||||
"from": "0x0000000000000000000000000000000000000000",
|
||||
"gas": "0x457",
|
||||
"gasPrice": "0x2b67",
|
||||
|
|
|
|||
Loading…
Reference in a new issue