Refactor BSQ verification and state change code.

- Add preliminary opReturn type to make case detection easier
- Set txType at the BsqTxController after iteration
- Move apply state code to BsqTxController
- Add more warning logs and checks
- Add stakeSpendingOutput to verify reveal tx more strictly
This commit is contained in:
Manfred Karrer 2018-03-28 20:02:12 -05:00
parent 7f1c0f8afb
commit 06a40c0b27
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -298,6 +298,7 @@ public class BsqTxView extends ActivatableView<GridPane, Void> implements BsqBal
.sum();
long issuanceValue = tx.getOutputs().get(1).getValue();
//TODO not good solution to just use a view specific TxType
final BsqTxListItem issuanceItem = new BsqTxListItem(item.getTransaction(),
bsqWalletService,
btcWalletService,