mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 18:22:12 +01:00
Fix error when using Block.verify() after the Block constructor
...which takes all the elements of the block as paramters.
This commit is contained in:
parent
5220fb5141
commit
20447bc340
@ -239,7 +239,7 @@ public class Block extends Message {
|
|||||||
maybeParseTransactions();
|
maybeParseTransactions();
|
||||||
if (optimalEncodingMessageSize != 0)
|
if (optimalEncodingMessageSize != 0)
|
||||||
return optimalEncodingMessageSize;
|
return optimalEncodingMessageSize;
|
||||||
optimalEncodingMessageSize = getMessageSize();
|
optimalEncodingMessageSize = bitcoinSerialize().length;
|
||||||
return optimalEncodingMessageSize;
|
return optimalEncodingMessageSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user