mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Update to follow DB spec
This commit is contained in:
15
common/block.go
Normal file
15
common/block.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
eth "github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// Block represents of an Ethereum block
|
||||
type Block struct {
|
||||
EthBlockNum uint64
|
||||
Timestamp time.Time
|
||||
Hash eth.Hash
|
||||
PrevHash eth.Hash
|
||||
}
|
||||
Reference in New Issue
Block a user