round2 method
Transaction
round2(
- Transaction r1,
- Transaction w1, {
- PoolHeader? header,
- ({List<
int> outpoint, List<int> parts, Transaction tx})? next, - UnlockingScriptBuilder? slotUnlocker,
Implementation
Transaction round2(Transaction r1, Transaction w1,
{PoolHeader? header, ({Transaction tx, List<int> outpoint, List<int> parts})? next, UnlockingScriptBuilder? slotUnlocker}) {
final y = next ?? y2;
return svc.createRoundTxn(w1, r1, y1.tx, opPub, fundingA, signer, opPub, fundingB.hash, header ?? f.h2, y.outpoint,
nextSlotTx: y.tx,
withdrawals: [f.withdrawal],
roundProof: slotUnlocker == null ? f.proof2 : null,
slotUnlocker: slotUnlocker);
}