diff --git a/blockchain/types/block.go b/blockchain/types/block.go index bb0d6ad..ce99ec2 100644 --- a/blockchain/types/block.go +++ b/blockchain/types/block.go @@ -46,7 +46,7 @@ func GenesisBlock() *Block { } func CreateBlock(lastBlockHeader *BlockHeader, txs []*Transaction, minerEth common.Address, privateKey crypto.PrivKey, eproof *types.ElectionProof) (*Block, error) { - timestamp := time.Now().Unix() + timestamp := time.Now().UnixNano() // extract hashes from transactions var merkleHashes [][]byte