fix mine condition in handletx

This commit is contained in:
Dean 2023-06-14 22:08:19 +08:00 committed by GitHub
parent 62e040e9f2
commit e210c438a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ func handleTx(request []byte, bc *Blockchain) {
}
}
} else {
if len(mempool) >= 2 && len(miningAddress) > 0 {
if len(mempool) >= 1 && len(miningAddress) > 0 {
MineTransactions:
var txs []*Transaction