Merge pull request #703 from wpaulino/genesis-block-timestamp-sync-info

waddrmgr: set timestamp for genesis block sync info
This commit is contained in:
Olaoluwa Osuntokun 2020-06-03 17:53:47 -07:00 committed by GitHub
commit 6390f167e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1772,7 +1772,11 @@ func Create(ns walletdb.ReadWriteBucket,
// Use the genesis block for the passed chain as the created at block
// for the default.
createdAt := &BlockStamp{Hash: *chainParams.GenesisHash, Height: 0}
createdAt := &BlockStamp{
Hash: *chainParams.GenesisHash,
Height: 0,
Timestamp: chainParams.GenesisBlock.Header.Timestamp,
}
// Create the initial sync state.
syncInfo := newSyncState(createdAt, createdAt)