round2 method

Transaction round2(
  1. Transaction r1,
  2. Transaction w1, {
  3. PoolHeader? header,
  4. ({List<int> outpoint, List<int> parts, Transaction tx})? next,
  5. 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);
}