coinbase first

This commit is contained in:
zhangzhen 2018-06-21 11:59:51 +08:00
parent fee9bfd3af
commit ffd08b1afd
1 changed files with 1 additions and 1 deletions

View File

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