Fix getBsqStateBuilder bug

putAllUnspentTxOutputMap was used 2 times instead of
putAllNonBsqTxOutputMap
This commit is contained in:
Manfred Karrer 2019-01-08 13:39:23 +01:00
parent d6a5798003
commit 93c8f36410
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -163,7 +163,7 @@ public class DaoState implements PersistablePayload {
.addAllCycles(cycles.stream().map(Cycle::toProtoMessage).collect(Collectors.toList()))
.putAllUnspentTxOutputMap(unspentTxOutputMap.entrySet().stream()
.collect(Collectors.toMap(e -> e.getKey().toString(), e -> e.getValue().toProtoMessage())))
.putAllUnspentTxOutputMap(nonBsqTxOutputMap.entrySet().stream()
.putAllNonBsqTxOutputMap(nonBsqTxOutputMap.entrySet().stream()
.collect(Collectors.toMap(e -> e.getKey().toString(), e -> e.getValue().toProtoMessage())))
.putAllSpentInfoMap(spentInfoMap.entrySet().stream()
.collect(Collectors.toMap(e -> e.getKey().toString(), entry -> entry.getValue().toProtoMessage())))