diff options
author | Determinant <[email protected]> | 2020-06-28 16:55:59 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-06-28 16:55:59 -0400 |
commit | 90fae71b0ab27aacdc2f9454820d487a9b2a529a (patch) | |
tree | 8b19f7d114119644f4faf35ec46dd25ff00a7d31 /core | |
parent | d235e2c6a5788ec4a6cff15a16f56b38a3876a0d (diff) |
...
Diffstat (limited to 'core')
-rw-r--r-- | core/genesis.go | 3 | ||||
-rw-r--r-- | core/tx_pool.go | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go index 7cab7bf..347beb3 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -38,6 +38,9 @@ import ( "github.com/ava-labs/go-ethereum/rlp" ) +//go:generate gencodec -type Genesis -field-override genesisSpecMarshaling -out gen_genesis.go +//go:generate gencodec -type GenesisAccount -field-override genesisAccountMarshaling -out gen_genesis_account.go + var errGenesisNoConfig = errors.New("genesis has no chain configuration") // Genesis specifies the header fields, state of a genesis block. It also defines hard diff --git a/core/tx_pool.go b/core/tx_pool.go index 5b2a3c0..1acd488 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -528,6 +528,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { } // Ensure the transaction doesn't exceed the current block limit gas. if pool.currentMaxGas < tx.Gas() { + fmt.Println(pool.currentMaxGas, tx.Gas()) return ErrGasLimit } // Make sure the transaction is signed properly |