File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -1268,15 +1268,19 @@ onClosedClientFanout closedState =
1268
1268
{ postChainTx =
1269
1269
FanoutTx
1270
1270
{ utxo
1271
+ -- XXX: Perhaps move this check down so it can be more readily
1272
+ -- tested.
1273
+ -- Here we check that to include in the fanout; if the versions
1274
+ -- are the same, the utxoToCommit or utxoToDecommit has not been
1275
+ -- used on chain yet; so we disregard, so we must not fan it out.
1271
1276
, utxoToCommit =
1272
- -- NOTE: note that logic is flipped in the commit and decommit case here.
1273
- if toInteger snapshotVersion == max (toInteger version - 1 ) 0
1274
- then utxoToCommit
1275
- else Nothing
1277
+ if snapshotVersion == version
1278
+ then Nothing
1279
+ else utxoToCommit
1276
1280
, utxoToDecommit =
1277
- if toInteger snapshotVersion == max ( toInteger version - 1 ) 0
1278
- then Nothing
1279
- else utxoToDecommit
1281
+ if snapshotVersion == version
1282
+ then utxoToDecommit
1283
+ else Nothing
1280
1284
, headSeed
1281
1285
, contestationDeadline
1282
1286
}
You can’t perform that action at this time.
0 commit comments