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.