tapyrus-core icon indicating copy to clipboard operation
tapyrus-core copied to clipboard

Enable packages through testmempoolaccept

Open azuchi opened this issue 1 year ago • 1 comments

Similar to Bitcoin, multiple parent-child transactions can be tested using testmempoolaccept RPC.

azuchi avatar Oct 12 '23 05:10 azuchi

#292 contains both testmempoolaccept and submitpackage RPCs.

  1. The PR toes not change fee related behaviour. In bitcoin Package transactions are evaluated as one whole entity while checking for fee. A parent transaction can pay the fee of a child. in tapyrus fee id still paid by individual transactions. We need to decide whether to change this and which transaction pays for the package fee: Any one tx in the package/ first/ parent tx / all tx.

  2. Package transportation is not implemented in bitcoin, each transaction is relayed individually. We can implement relay if necessary - add a package header similar to block header. Allow package relay only in well defined cases - for example peers which have dos score 0. The difference between block and package will be that package txs are unconfirmed and are added to mempool as a whole or nothing.

Naviabheeman avatar Jan 21 '24 17:01 Naviabheeman