Skip to content

Commit

Permalink
Allow to put adProofs to history in random order for UtxoState
Browse files Browse the repository at this point in the history
  • Loading branch information
catena2w committed Dec 8, 2017
1 parent 6b33667 commit 6cf73e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ trait FullProofsProcessor extends ADProofsProcessor with FullBlockProcessor {
case Some(header: Header) =>
require(header.ADProofsRoot sameElements m.digest,
s"Header ADProofs root ${Base58.encode(header.ADProofsRoot)} differs from $m digest")
if(!header.isGenesis) {
if(!header.isGenesis && adState) {
require(typedModifierById[Header](header.parentId).exists(h => contains(h.ADProofsId)),
s"Trying to apply proofs ${m.encodedId} for header ${header.encodedId}, which parent proofs are empty")
}
Expand Down

0 comments on commit 6cf73e9

Please sign in to comment.