Make block hash more random

This commit is contained in:
ChronosX88 2021-07-20 01:38:55 +03:00
parent a6cf757fcf
commit ed9fa658ed
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -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