mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +00:00
Fix the Wallet unit tests by allowing null blocks in Wallet.receive() again.
This commit is contained in:
parent
42b5a0d0ed
commit
6f36e96f66
@ -245,6 +245,7 @@ public class Wallet implements Serializable {
|
||||
// accepted by the network.
|
||||
//
|
||||
// Mark the tx as appearing in this block so we can find it later after a re-org.
|
||||
if (block != null)
|
||||
wtx.addBlockAppearance(block, bestChain);
|
||||
if (bestChain) {
|
||||
if (valueSentToMe.equals(BigInteger.ZERO)) {
|
||||
@ -277,6 +278,7 @@ public class Wallet implements Serializable {
|
||||
} else {
|
||||
if (!reorg) {
|
||||
// Mark the tx as appearing in this block so we can find it later after a re-org.
|
||||
if (block != null)
|
||||
tx.addBlockAppearance(block, bestChain);
|
||||
}
|
||||
// This TX didn't originate with us. It could be sending us coins and also spending our own coins if keys
|
||||
|
Loading…
Reference in New Issue
Block a user