Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/blockchain/chainio.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2015-2016 The btcsuite developers
// Copyright (c) 2016-2023 The Decred developers
// Copyright (c) 2016-2026 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -1693,7 +1693,7 @@ func (b *BlockChain) initChainState(ctx context.Context,

// Load all of the block index entries from the database and construct
// the block index.
newRulesStartTime := newDeploymentsStartTime(dbTx, b.chainParams)
newRulesStartTime = newDeploymentsStartTime(dbTx, b.chainParams)
err = loadBlockIndex(dbTx, &b.chainParams.GenesisHash, b.index,
newRulesStartTime)
if err != nil {
Expand Down
5 changes: 3 additions & 2 deletions internal/blockchain/upgrade.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2013-2016 The btcsuite developers
// Copyright (c) 2015-2023 The Decred developers
// Copyright (c) 2015-2026 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -2631,7 +2631,8 @@ func migrateSpendJournalVersion2To3(ctx context.Context, b *BlockChain) error {
}

// Load the full block from the database.
blockBytes, err := dbTx.FetchBlock(&blockHash)
var blockBytes []byte
blockBytes, err = dbTx.FetchBlock(&blockHash)
if err != nil {
break
}
Expand Down