mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 17:26:28 +01:00
Transaction: Fix incorrect condition for log message in setLockTime.
This commit is contained in:
parent
0bc6c04d5f
commit
910544ae57
1 changed files with 1 additions and 1 deletions
|
@ -1048,7 +1048,7 @@ public class Transaction extends ChildMessage {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (!seqNumSet || inputs.isEmpty()) {
|
||||
if (lockTime != 0 && (!seqNumSet || inputs.isEmpty())) {
|
||||
// At least one input must have a non-default sequence number for lock times to have any effect.
|
||||
// For instance one of them can be set to zero to make this feature work.
|
||||
log.warn("You are setting the lock time on a transaction but none of the inputs have non-default sequence numbers. This will not do what you expect!");
|
||||
|
|
Loading…
Add table
Reference in a new issue