This commit is contained in:
Zane 2021-06-26 12:46:26 -07:00 committed by GitHub
commit 12304d9b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ func handleTx(request []byte, bc *Blockchain) {
} }
cbTx := NewCoinbaseTX(miningAddress, "") cbTx := NewCoinbaseTX(miningAddress, "")
txs = append(txs, cbTx) txs = append([]*Transaction{cbTx}, txs...)
newBlock := bc.MineBlock(txs) newBlock := bc.MineBlock(txs)
UTXOSet := UTXOSet{bc} UTXOSet := UTXOSet{bc}