Referring to these lines:
|
if (this.options.updateUtxoSet && this.transactionMap[txid]) { |
|
throw new Error(`Transaction with txid ${txid} was already submitted`); |
|
} |
Full nodes do not throw if different clients or the same client submits the transaction already seen by it, because of the nature of p2p transaction propagation. Throwing is not appropriate here, a console warning would suffice.
Referring to these lines:
cashscript/packages/cashscript/src/network/MockNetworkProvider.ts
Lines 48 to 50 in 7aeea22
Full nodes do not throw if different clients or the same client submits the transaction already seen by it, because of the nature of p2p transaction propagation. Throwing is not appropriate here, a console warning would suffice.