Merge pull request #703 from wpaulino/genesis-block-timestamp-sync-info
waddrmgr: set timestamp for genesis block sync info
This commit is contained in:
commit
6390f167e5
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue