rust-payjoin icon indicating copy to clipboard operation
rust-payjoin copied to clipboard

Ns1r integration test does not fail with greater than 4 senders

Open benalleng opened this issue 8 months ago • 4 comments

according to this comment 4 should be the max number of senders possible but the test does not fail when senders is set to 5.

https://github.com/payjoin/rust-payjoin/blob/361c31e5627aec721eccf1e6e1042618adf94038/payjoin/tests/integration.rs#L747-L750

benalleng avatar Apr 15 '25 19:04 benalleng

Interesting... I distinctly remeber hitting a max payload size. I guess there are some variables that could change this behavior like numbers of inputs every senders is contributing

arminsabouri avatar Apr 15 '25 20:04 arminsabouri

After testing this a little more I was able to get up to 24 senders, after which the test-wallet ran out of bitcoin, so perhaps this comment / whole test needs another look to make sure something else flaky isn't happening.

benalleng avatar Apr 15 '25 20:04 benalleng

Do we have an actual payload size validation

Johnosezele avatar Apr 16 '25 07:04 Johnosezele

Do we have an actual payload size validation

Yes IIRC this is a policy on the directory

Edit: its also checked by the receiver when they are decapsulating the ohttp responses

arminsabouri avatar Apr 16 '25 13:04 arminsabouri

NS1R was removed from rust-payjoin #923

arminsabouri avatar Sep 18 '25 16:09 arminsabouri