mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 13:55:45 +00:00
Revert "Moved EthTime to constants, update more timestamps to EthTime"
This reverts commit a731f59bd39abd2a75a2b5c0e92aa016845f5ef7.
This commit is contained in:
parent
a731f59bd3
commit
fdcfe5ae2f
@ -31,7 +31,7 @@ type
|
||||
nonce*: string
|
||||
mixHash*: string
|
||||
extraData*: string
|
||||
timestamp*: EthTime
|
||||
timestamp*: int
|
||||
stateRoot*: string
|
||||
|
||||
FundedAddress* = ref object
|
||||
|
@ -1,12 +1,11 @@
|
||||
|
||||
import
|
||||
ttmath, math, strutils, tables, utils/padding, rlp, times
|
||||
ttmath, math, strutils, tables, utils/padding, rlp
|
||||
|
||||
# rlpFields UInt256, table
|
||||
|
||||
type
|
||||
TypeHint* {.pure.} = enum UInt256, Bytes, Any
|
||||
EthTime* = Time
|
||||
|
||||
#Bytes* = seq[byte]
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import ../constants, ttmath, strformat, times, ../validation
|
||||
|
||||
type
|
||||
EthTime = Time
|
||||
Header* = ref object
|
||||
timestamp*: EthTime
|
||||
difficulty*: UInt256
|
||||
|
@ -44,7 +44,7 @@ method blockhash*(vmState: BaseVMState): string =
|
||||
method coinbase*(vmState: BaseVMState): string =
|
||||
vmState.blockHeader.coinbase
|
||||
|
||||
method timestamp*(vmState: BaseVMState): EthTime =
|
||||
method timestamp*(vmState: BaseVMState): int =
|
||||
vmState.blockHeader.timestamp
|
||||
|
||||
method blockNumber*(vmState: BaseVMState): UInt256 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user