mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-08 14:04:29 +00:00
parent
42da35b86c
commit
28c75fc213
1 changed files with 2 additions and 2 deletions
|
|
@ -585,7 +585,7 @@ func (diff *StateOverride) Apply(statedb *state.StateDB) error {
|
||||||
type BlockOverrides struct {
|
type BlockOverrides struct {
|
||||||
Number *hexutil.Big
|
Number *hexutil.Big
|
||||||
Difficulty *hexutil.Big
|
Difficulty *hexutil.Big
|
||||||
Time *hexutil.Big
|
Time *hexutil.Uint64
|
||||||
GasLimit *hexutil.Uint64
|
GasLimit *hexutil.Uint64
|
||||||
Coinbase *common.Address
|
Coinbase *common.Address
|
||||||
Random *common.Hash
|
Random *common.Hash
|
||||||
|
|
@ -604,7 +604,7 @@ func (diff *BlockOverrides) Apply(blockCtx *vm.BlockContext) {
|
||||||
blockCtx.Difficulty = diff.Difficulty.ToInt()
|
blockCtx.Difficulty = diff.Difficulty.ToInt()
|
||||||
}
|
}
|
||||||
if diff.Time != nil {
|
if diff.Time != nil {
|
||||||
blockCtx.Time = diff.Time.ToInt().Uint64()
|
blockCtx.Time = uint64(*diff.Time)
|
||||||
}
|
}
|
||||||
if diff.GasLimit != nil {
|
if diff.GasLimit != nil {
|
||||||
blockCtx.GasLimit = uint64(*diff.GasLimit)
|
blockCtx.GasLimit = uint64(*diff.GasLimit)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue