diff --git a/src/utils/HydraMultiplayer/base.ts b/src/utils/HydraMultiplayer/base.ts index b0010e33..0ea9d8c7 100644 --- a/src/utils/HydraMultiplayer/base.ts +++ b/src/utils/HydraMultiplayer/base.ts @@ -76,9 +76,11 @@ export abstract class HydraMultiplayer { await this.selectUTxO(); const datum = encodePackets(this.packetQueue); - const [newUTxO, tx] = this.buildTx(datum); + const [_, tx] = this.buildTx(datum); await this.hydra.submitTx(tx); - this.latestUTxO = newUTxO; + // Refetch the latestUtxO everytime to determine if that's the issue + this.latestUTxO = null; + // this.latestUTxO = newUTxO; this.packetQueue = []; } diff --git a/src/utils/hydra.ts b/src/utils/hydra.ts index 251429a6..a4f27e85 100644 --- a/src/utils/hydra.ts +++ b/src/utils/hydra.ts @@ -235,6 +235,7 @@ export class Hydra { const txId = txParsed.body().hash(); this.tx_timings[txId] = { sent: performance.now() }; this.tx_count++; + this.connection.send( JSON.stringify({ tag: "NewTx",