Skip to content

change escrow duration from 8 - 10 hrs#2304

Merged
KoalaSat merged 8 commits intoRoboSats:mainfrom
hbdc-BtcFixesThis:increasing_maximum_invoice_escrow_duration_2234
Jan 15, 2026
Merged

change escrow duration from 8 - 10 hrs#2304
KoalaSat merged 8 commits intoRoboSats:mainfrom
hbdc-BtcFixesThis:increasing_maximum_invoice_escrow_duration_2234

Conversation

@hbdc-BtcFixesThis
Copy link
Contributor

What does this PR do?

Fixes # #2234

This pr increases the maximum allowed escrow time from 8 to 10 hours

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.

Copy link
Member

@KoalaSat KoalaSat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great you picked this one! Did you test the frontend? I think you will need some modifications on the Maker form

@hbdc-BtcFixesThis
Copy link
Contributor Author

Thanks @KoalaSat, I updated the maker form and searched the codebase for any other references escrow duration. I would gladly test the frontend but I think I may need some help with test data to fill out an order; or just advice on how to test the change. I'm not very familiar with the flow but the duration is likely set after the deposit. I'm not sure what ways you go about bypassing the step for local testing. Thanks in advanced!

Oh and I found a small grammar issue when I opened one of the files to update so I included as part of the pr; hope thats ok. I can split it out into a separate pr if that's helpful.

@KoalaSat
Copy link
Member

KoalaSat commented Jan 5, 2026

Ey @hbdc-BtcFixesThis sorry for taking this long to answer. I was about to merge but I realized it would great if we somehow reflect this in tests/test_trade_pipeline.py, specially by modifying

"escrow_duration": 8700,

@hbdc-BtcFixesThis
Copy link
Contributor Author

Ey @hbdc-BtcFixesThis sorry for taking this long to answer. I was about to merge but I realized it would great if we somehow reflect this in tests/test_trade_pipeline.py, specially by modifying

"escrow_duration": 8700,

Thank you for taking a look @KoalaSat. My apologies for the delayed response. I added a test to check that the api responds appropriately when the escrow duration is out of the set bounds. I hope you are having an amazing start to your new year!

@fxrstor
Copy link
Contributor

fxrstor commented Jan 15, 2026

I don't think he meant to add a new test but rather change the value of escrow_duration. Is that correct? @KoalaSat

@KoalaSat
Copy link
Member

I don't think he meant to add a new test but rather change the value of escrow_duration. Is that correct? @KoalaSat

Correct, but this also works, this way we are testing multiple values

Copy link
Member

@KoalaSat KoalaSat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @hbdc-BtcFixesThis thank you for your work this was recurrent feature request

Please accept a small tip for your work, share here a LN invoice with a long expiration date for 60,000 sats

@KoalaSat KoalaSat merged commit 41e6db0 into RoboSats:main Jan 15, 2026
9 checks passed
@hbdc-BtcFixesThis
Copy link
Contributor Author

Thank you @KoalaSat, I'm really glad I could help. I'd love to pick up another task to tackle next. It's a pleasure to work with good people on a project I truly believe in

bitcoin:BC1QJPX82HLXRNJERM4C5HF55KEG39EFD6XJCYWCJU?lightning=LNBC600U1P5K57NZPP5PEPQUJUSUEM4PN0PXGMTFC6XT75JJ5WQEYCAPFN0A6LAFG66356QDQ6G36HYCT5D9HKUGRXV4SHGATJV5CQZZSXQ9YN4QQSP5WY294GCE8Z83ZFDE3QF6CK6PMDDPCX3CJU8SME3A8D8SQVW5QKDS9QXPQYSGQ052V0CY7XMCL5K6SMFKZM7VNDRPTYWGWZPYCG2CMYTP5EUU4YQU3ZJMX900P22CCYSC0R63ZVG3RZCJ7H08CJUHUPAJYEX29JK35Q2QPXKRKWA&amount=0.0006&message=Duration%20feature

@hbdc-BtcFixesThis hbdc-BtcFixesThis deleted the increasing_maximum_invoice_escrow_duration_2234 branch January 16, 2026 17:54
@KoalaSat
Copy link
Member

@RobosatsDevFund

@RobosatsDevFund
Copy link

@hbdc-BtcFixesThis Our node is unable to connect with yours, could you please try again using a proxy wallet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants