Skip to content

Conversation

aftermath2
Copy link
Contributor

@aftermath2 aftermath2 commented Aug 3, 2025

What does this PR do?

Fixes #1943.

This PR introduces a field for users to include contract terms, notes or other details about the order and its payment methods.

The field has a maximum length of 240 characters (discretionary, could be shorter) and its input in the maker form is visible only if advanced options are enabled.

Tests

test_trade_pipeline.py
$ docker exec -it test-coordinator coverage run manage.py test
Found 63 test(s).
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
...............Could not fetch BTC prices from https://criptoya.com/api/btc: Expecting value: line 1 column 1 (char 0)
...Regtest network was already ready. Skipping initalization.
Updating order with new Locked bond from maker
2025-08-03 06:41:04.938508+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'bc2ec61abca7a5a3607631470ce0ff8bde4bf6c4e6d41826a3e231c324db40a1', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.18575811386108398}
..Updating order with new Locked bond from maker
2025-08-03 06:41:05.547995+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '79affb6e06f93170685d5ee008e636bf2d66efffca1198281d18c7eb17e249fe', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03637290000915527}
.Updating order with new Locked bond from maker
2025-08-03 06:41:06.244586+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '7e4b2bcaeadcdfd341dc52af8662d3b95d09f2b3f13711dfc2e61bfc3481dfd1', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.0772252082824707}
.Updating order with new Locked bond from maker
2025-08-03 06:41:06.934427+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'f89444de8fc1b2791f1298fec3d36b22ae0fdaa4025b0c8c00b787dd205ff3ac', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.04658055305480957}
.Updating order with new Locked bond from maker
2025-08-03 06:41:07.786676+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '49764a3b0a2cc71e9e1b27a96e99dc520bebf09fa9076c6a34bba6aa9cbe2355', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.04628324508666992}
.Updating order with new Locked bond from maker
2025-08-03 06:41:08.432266+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '87f073458aac65be1830c3be341c1520797cdb0ef33e3be9311ec7d34ef9708a', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.054961442947387695}
.Updating order with new Locked bond from maker
2025-08-03 06:41:09.158881+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '14fb3dedaa86a66359c771831e2076cbdcf830ed3dc192a09cf26faef341acde', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.06746554374694824}
.Updating order with new Locked bond from maker
2025-08-03 06:41:10.045617+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '85ba4a614aa0f105ca42d758c8a3944d48ccc9861e39ba92f228163fd6873e73', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07520604133605957}
Updating order with new Locked bond from taker
2025-08-03 06:41:10.664262+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'cd1124ca2ec67077323b4f6d915c9f8bee3536e3566c9180b06d815a48036ca0', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.11788654327392578}
Updating order with new Locked escrow
2025-08-03 06:41:11.007637+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'e32f9ba70d30bc410ae487201505733cba05fe6d486575e178b2bbbfa938b6bf', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.011988401412963867}
.Updating order with new Locked bond from maker
2025-08-03 06:41:13.195245+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '2bf07752a956b51546040528bc04791b2b8a566e9640a3e35debd91dcf24b198', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07030868530273438}
Updating order with new Locked bond from taker
2025-08-03 06:41:13.771710+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '4661f715576606b550b62ebbd7d68fb1675ce646aa2d6be17cf1626b9ecff592', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.0997467041015625}
Updating order with new Locked escrow
2025-08-03 06:41:14.096090+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'f93813c3ebe3e53227659d0ac081bfc82860bab83fad6402367b88eb4976cdd4', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.01691436767578125}
../usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Order.expires_at received a naive datetime (2025-08-03 06:41:15.172328) while time zone support is active.
  warnings.warn(
2025-08-03 06:41:15.180647+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 11: BUY BTC for 84.0-201.7 USD was Waiting for maker bond'}], 'failed_order_expiry': [], 'reason_failure': []}
.Updating order with new Locked bond from maker
2025-08-03 06:41:15.716747+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '9786ff29553ff5e4b14731134e0de901b29a4d0de0acf3d073886b94f56fe6e8', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.06518816947937012}
Updating order with new Locked bond from taker
2025-08-03 06:41:16.405241+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'eca53de91a77298d3ab48a4317d6a4a2ed0d6ff42e1a504081d6cbf7186ec72d', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.11737799644470215}
Updating order with new Locked escrow
2025-08-03 06:41:16.728935+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': '806f4ac9b1dcb751cf17b6679dba0e745214c2590f1d8ad993851c390ca40f0d', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.02030158042907715}
Order: 12 IN_FLIGHT. Hash 6fbd5b15494352cf9c086310e29cf3b539baea36c00c616695dfcd93ed6aa67d
Order: 12 IN_FLIGHT. Hash 6fbd5b15494352cf9c086310e29cf3b539baea36c00c616695dfcd93ed6aa67d
Order: 12 SUCCEEDED. Hash: 6fbd5b15494352cf9c086310e29cf3b539baea36c00c616695dfcd93ed6aa67d
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField LNPayment.created_at received a naive datetime (2025-08-03 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField LNPayment.created_at received a naive datetime (2025-08-04 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField OnchainPayment.created_at received a naive datetime (2025-08-03 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField OnchainPayment.created_at received a naive datetime (2025-08-04 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField MarketTick.timestamp received a naive datetime (2025-08-03 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField MarketTick.timestamp received a naive datetime (2025-08-04 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField AccountingDay.day received a naive datetime (2025-08-03 00:00:00) while time zone support is active.
  warnings.warn(
.Updating order with new Locked bond from maker
2025-08-03 06:41:18.268684+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '1aab523e7155d3059340ca9d3f7a3db1e18f6da8b0ae8335b0571278a8431ba6', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.05353999137878418}
Updating order with new Locked bond from taker
2025-08-03 06:41:18.885270+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '5e66056d035f0b922097207c02ecbc8c041357283434fa73c601f82b00ab7f81', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.09376120567321777}
Updating order with new Locked escrow
2025-08-03 06:41:19.199037+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': '6b63cbb2c87ec029d80483531910e4b70b9422167053811b51c62339d770f7b1', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.017805814743041992}
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Order.expires_at received a naive datetime (2025-08-03 06:41:19.258351) while time zone support is active.
  warnings.warn(
2025-08-03 06:41:19.379970+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 13: BUY BTC for 100.0 USD was Waiting only for buyer invoice'}], 'failed_order_expiry': [], 'reason_failure': []}
2025-08-03 06:41:19.428393+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 13: BUY BTC for 100.0 USD was Waiting only for buyer invoice'}], 'failed_order_expiry': [], 'reason_failure': [], 'num_expired_take_orders': 1, 'expired_take_orders': [{0: 'Order 13 taken by Robot(30,UniformTownsman766) for 100.00000000 fiat units was expired'}], 'failed_take_order_expiry': [], 'reason_take_failure': []}
...Updating order with new Locked bond from maker
2025-08-03 06:41:20.218708+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'd230797d71e8c155dbd37492d583d04a9429ccd8daaeb2f0a354f560fe5dd3a4', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.02711653709411621}
Updating order with new Locked bond from taker
2025-08-03 06:41:20.763459+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '5764d8f6eef39e45f08e8328aeaf5166ad81f12fcc3f1c7f7565294c6b48a212', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.0730283260345459}
Updating order with new Locked escrow
2025-08-03 06:41:21.104676+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'cd4bd29a81f8358a58e2fb6c51732b6fa6f7f36034707eda7a3ca44d73fa6d0a', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.02394270896911621}
..Updating order with new Locked bond from maker
2025-08-03 06:41:22.286041+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '783a6d57ba9430c12eb258b29c0cf3c4a4b0e77358497dc054ef87c99a0cf32c', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03498363494873047}
Updating order with new Locked bond from taker
2025-08-03 06:41:22.772090+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'd90653f13243575adc006b40eb5665a0baae73a5d375d6e06632eb3a9cd89a56', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07675004005432129}
.Updating order with new Locked bond from maker
2025-08-03 06:41:23.523375+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'eda26733cdf0e44635d75014f940125068056cd6330a5b0b4ff694d003088ba3', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.04272651672363281}
Updating order with new Locked bond from taker
Expiring take_order because order was already taken
2025-08-03 06:41:24.391660+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '304b13e2f0411ee20d3a00292ed00ef732fd812e9b0153e23afd6333af97d827', 'old_status': 'Generated', 'new_status': 'Locked'}}, {1: {'payment_hash': '7bf54a13e15a46bc2bb2a933594818bbe480d2a2a861b36d8ae981efe27de417', 'old_status': 'Generated', 'new_status': 'Cancelled'}}], 'time': 0.1438148021697998}
.Updating order with new Locked bond from maker
2025-08-03 06:41:25.218755+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '55643751efe2f2a339bbd6125a6cc1762eae086cca33e395d68d3346cbf42580', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.09962129592895508}
.Updating order with new Locked bond from maker
2025-08-03 06:41:25.967715+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '9a42c7eb613502900e61c1b9db45945967d4ac42d5302c5ae05dcdbe534ff015', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07974958419799805}
.Updating order with new Locked bond from maker
2025-08-03 06:41:26.770023+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '47c6fb94c4ae5036b9b5987d82dfc4a354586d99f17d477849413ea181f46d8b', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.08133077621459961}
.Updating order with new Locked bond from maker
2025-08-03 06:41:27.720507+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '758d814921bcf534bb1c9a4e11bc78b805e28943174954f248b87f58265bfe66', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.06608963012695312}
.Updating order with new Locked bond from maker
2025-08-03 06:41:28.595235+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '73dbfeb10680d86e13f88479b90f6e2d26f50c8694d79d5c92cc6b6081f9cdaf', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.11986923217773438}
...Updating order with new Locked bond from maker
2025-08-03 06:41:29.669060+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '8f1da5169a521ecc78598a3cf36eef55cff7217f549ef7747309b367c2ae6a01', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.04869890213012695}
Updating order with new Locked bond from taker
2025-08-03 06:41:30.286279+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '012d59e1423bf7dbc3497f398ecfd8c857f1997a012201e57fa8ffe49dfc8ddd', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07134509086608887}
Updating order with new Locked escrow
2025-08-03 06:41:30.623823+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': '187ce531bdc7e7f8881e5db6d72b0cf1cd4f96bda72ad3e8ca8373185582738e', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.011673688888549805}
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Order.expires_at received a naive datetime (2025-08-03 06:41:31.864002) while time zone support is active.
  warnings.warn(
2025-08-03 06:41:32.807561+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 24: BUY BTC for 100.0 USD was Fiat sent - In chatroom'}], 'failed_order_expiry': [], 'reason_failure': []}
2025-08-03 06:41:32.819733+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 24: BUY BTC for 100.0 USD was Fiat sent - In chatroom'}], 'failed_order_expiry': [], 'reason_failure': [], 'num_expired_take_orders': 1, 'expired_take_orders': [{0: 'Order 24 taken by Robot(55,UniformTownsman766) for 100.00000000 fiat units was expired'}], 'failed_take_order_expiry': [], 'reason_take_failure': []}
.Updating order with new Locked bond from maker
2025-08-03 06:41:33.400915+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '9013a2d357b64594bd17f981860e62e932ab3f254a351fac67c16416724cd0c8', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.10463976860046387}
Updating order with new Locked bond from taker
2025-08-03 06:41:34.072319+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '4d9d44058cce7a44eaa206ae0e2cda7f504662e10a8f96fe465846ea558ac941', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.0839681625366211}
Updating order with new Locked escrow
2025-08-03 06:41:34.384941+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'de2ebf8bad0cf6d8fe96e14b2bab01ac6a2e7aac0979642dc9315127ef555343', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.024812698364257812}
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Order.expires_at received a naive datetime (2025-08-03 06:41:34.945816) while time zone support is active.
  warnings.warn(
2025-08-03 06:41:35.224235+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 25: BUY BTC for 100.0 USD was Sending fiat - In chatroom'}], 'failed_order_expiry': [], 'reason_failure': []}
2025-08-03 06:41:35.261157+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 25: BUY BTC for 100.0 USD was Sending fiat - In chatroom'}], 'failed_order_expiry': [], 'reason_failure': [], 'num_expired_take_orders': 1, 'expired_take_orders': [{0: 'Order 25 taken by Robot(58,UniformTownsman766) for 100.00000000 fiat units was expired'}], 'failed_take_order_expiry': [], 'reason_take_failure': []}
.Updating order with new Locked bond from maker
2025-08-03 06:41:35.783125+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'add53df88864e4eaf930d39e7db188f7cff07d972ea761b7e3b95d9ab72ff001', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03540921211242676}
Updating order with new Locked bond from taker
2025-08-03 06:41:36.500491+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'ca3851982c74e2176cb97720eb2d35fd4c08acb469e62493bd4c38a469d42f3e', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.12748122215270996}
Updating order with new Locked escrow
2025-08-03 06:41:36.883499+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': '4228b01401c263e7ca90ce16c3746abdc88cf2521eb04da78444745c40f5ec4c', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03605246543884277}
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Order.expires_at received a naive datetime (2025-08-03 06:41:37.422442) while time zone support is active.
  warnings.warn(
2025-08-03 06:41:37.854631+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 26: BUY BTC for 100.0 USD was Sending fiat - In chatroom'}], 'failed_order_expiry': [], 'reason_failure': []}
2025-08-03 06:41:37.875900+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 26: BUY BTC for 100.0 USD was Sending fiat - In chatroom'}], 'failed_order_expiry': [], 'reason_failure': [], 'num_expired_take_orders': 1, 'expired_take_orders': [{0: 'Order 26 taken by Robot(61,UniformTownsman766) for 100.00000000 fiat units was expired'}], 'failed_take_order_expiry': [], 'reason_take_failure': []}
.Updating order with new Locked bond from maker
2025-08-03 06:41:38.567981+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '54fbb8370bd57b61f57527df28641b368a221b84b1f4bf779084050210ca7c19', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.08072972297668457}
.Updating order with new Locked bond from maker
2025-08-03 06:41:39.294272+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'c3bf3d42bcc6bead9c27a4992eede44373642d8ea07fa7163b4698c716ddbbb0', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.04584360122680664}
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Order.expires_at received a naive datetime (2025-08-03 06:41:39.371613) while time zone support is active.
  warnings.warn(
2025-08-03 06:41:39.445679+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 28: BUY BTC for 84.0-201.7 USD was Public'}], 'failed_order_expiry': [], 'reason_failure': []}
.Updating order with new Locked bond from maker
2025-08-03 06:41:40.114951+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'c3a95771094d8813f643f2c7efa311b5a70bb9b2fc62b021fdc6069646bc2670', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07370805740356445}
.Updating order with new Locked bond from maker
2025-08-03 06:41:40.861574+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '5ab134f84e1d529bbeb1b4a7b457a898b5271788926c19a22cbe856ea79fc66c', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.05735611915588379}
Updating order with new Locked bond from taker
2025-08-03 06:41:41.559972+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'a42d6344c224dc3c4319a711cfc406786e3bc5634fff1062733361fd492303f8', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.0745706558227539}
Updating order with new Locked escrow
2025-08-03 06:41:41.921959+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'a2e578aba147adea0f592494fa1cb57a2f57e191ebabbdcfd2a63b8ae3cd3f59', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03907895088195801}
Mining 1 blocks
Waiting for robot node chain sync 0s.Updating order with new Locked bond from maker
2025-08-03 06:41:43.648496+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '84a1e98a4a76f2b53b9017a414181e4d13e21933a01436e27d6ffc9ab4841ce0', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.04188275337219238}
Updating order with new Locked bond from taker
2025-08-03 06:41:44.367099+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'b90a3787d1f131de5277aa0659c0b1cea2a881a7024f78590702813220d7a6a6', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.08635783195495605}
Updating order with new Locked escrow
2025-08-03 06:41:44.757196+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'd386bbcef2c63b29c18f7c56ac6b57148b7746b03b7422e6150e965bddab9854', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03141975402832031}
Order: 31 IN_FLIGHT. Hash f5c753b59acdab3fb0b8734fefd39614f8e0fa056ae005085fcbe9f55066d3a0
Order: 31 IN_FLIGHT. Hash f5c753b59acdab3fb0b8734fefd39614f8e0fa056ae005085fcbe9f55066d3a0
Order: 31 SUCCEEDED. Hash: f5c753b59acdab3fb0b8734fefd39614f8e0fa056ae005085fcbe9f55066d3a0
.Updating order with new Locked bond from maker
2025-08-03 06:41:46.213138+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '2cee7462e34e9d11265a61722434255b363610b989ccbbfb7d5090bf6f60c29f', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03305983543395996}
Updating order with new Locked bond from taker
2025-08-03 06:41:46.824445+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '33bbce4ae5ab5970d3496cdd856313b7a13d86c4c39fa8770b0d91d9537a7841', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07122945785522461}
Updating order with new Locked escrow
2025-08-03 06:41:47.202301+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'd69d92fea76b15fefd2856da8117a756d04e9bb3f4e7ecfc955fe5354af1d368', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.015236854553222656}
Mining 1 blocks
Waiting for robot node chain sync 0s.Updating order with new Locked bond from maker
2025-08-03 06:41:48.841391+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '232aabd74dc4dae094fe9ca16348dc505c97e6210f5ff184f9e972362395cbed', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.06835269927978516}
Updating order with new Locked bond from taker
2025-08-03 06:41:49.562129+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'c0e5f892168b92808bfdbf3f5f6d55153bf5762ae28ce86d5d06f29d8956df30', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.11495709419250488}
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Order.expires_at received a naive datetime (2025-08-03 06:41:49.609234) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.13/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField TakeOrder.expires_at received a naive datetime (2025-08-03 06:41:49.617989) while time zone support is active.
  warnings.warn(
2025-08-03 06:41:49.723916+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 33: BUY BTC for 100.0 USD was Waiting for trade collateral and buyer invoice'}], 'failed_order_expiry': [], 'reason_failure': []}
2025-08-03 06:41:49.775243+00:00
{'num_expired_orders': 1, 'expired_orders': [{0: 'Order 33: BUY BTC for 100.0 USD was Waiting for trade collateral and buyer invoice'}], 'failed_order_expiry': [], 'reason_failure': [], 'num_expired_take_orders': 1, 'expired_take_orders': [{0: 'Order 33 taken by Robot(77,UniformTownsman766) for 100.00000000 fiat units was expired'}], 'failed_take_order_expiry': [], 'reason_take_failure': []}
.Updating order with new Locked bond from maker
2025-08-03 06:41:50.355055+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '48477ba6d9f0a2cb20980a2b9e39acf752aed78c34d61ae2261faca51b92f72d', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.030144691467285156}
Updating order with new Locked bond from taker
2025-08-03 06:41:51.063058+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '008df210728b4a8789feeb3f8832b1afe8420ecc71544c70c53192546897a31b', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.10583877563476562}
.Updating order with new Locked bond from maker
2025-08-03 06:41:51.774483+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'd1e298220707219f867c5b1c5c2c31a0b0d923d196db15dcf88c32cf2319f6f3', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.032192230224609375}
Updating order with new Locked bond from taker
2025-08-03 06:41:52.463740+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'bb7e1c1aab3bb753ebdd27ceea6e9cfd5984e30fa3effa35f00e021857761dcc', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.13416695594787598}
Updating order with new Locked escrow
2025-08-03 06:41:52.847128+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'd3cabc6f91fcf777d57ecf69046f4f262c6991d6598e8836adb48fc6995cf25a', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.015503883361816406}
.Updating order with new Locked bond from maker
2025-08-03 06:41:54.308454+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '11211dff329d7cbd7fd6d38c7db080f7c4edd4bc50c72cbd1f2a867a0012627c', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.09013843536376953}
Updating order with new Locked bond from taker
2025-08-03 06:41:54.965265+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': 'fcd10353908096ce46714dc8ea658e336c274db9b5f8d1947addafbc6d091b1e', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.09192180633544922}
Updating order with new Locked escrow
2025-08-03 06:41:55.311812+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': '622c6c134bbeec02f0eebd525ee361bffeb96c272e9d35e2959cc92cfeb636a2', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.014790773391723633}
.Updating order with new Locked bond from maker
2025-08-03 06:41:56.629365+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '6b02a05ecabf43cd338d720737f2d8de88a903d7189818c9ec7108d6ef1f1929', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.08115124702453613}
Updating order with new Locked bond from taker
2025-08-03 06:41:57.334078+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '9e77888908bef3ee9c5bc44bd36178432c0acaa9c1f0155c39d74d05b83109d4', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.12653017044067383}
Updating order with new Locked escrow
2025-08-03 06:41:57.737104+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': '8a7c6ba20fc5a4f2d896757daed32313a6a6fa77732614a84442836eb196c63a', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.03712773323059082}
.Updating order with new Locked bond from maker
2025-08-03 06:41:58.427531+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '319a2433d297bd921b1364767b70fbfcf9049fcb8a02931c11cf04275726b193', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.10609722137451172}
Updating order with new Locked bond from taker
2025-08-03 06:41:59.096949+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '9e96caf8bb2ff75d2e9e94ba48765aada3daf9bca8fd95516c57c131425a4d87', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.07248163223266602}
Updating order with new Locked escrow
2025-08-03 06:41:59.414947+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'f7d280feaa7439f87427929b4ef771cabc28d9d3a7caebd3e3ee73447447dba1', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.02770376205444336}
.Updating order with new Locked bond from maker
2025-08-03 06:42:00.587549+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '389b415e183091a8a9147a159aa1f88c532747e34590940d351113fd9981ffe4', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.05343890190124512}
Updating order with new Locked bond from taker
2025-08-03 06:42:01.333717+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '40f8cd32e75c8dd4942d32f0f6da0334f7ba1c7e1325248415fc10c3cb32b2ad', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.13286447525024414}
Updating order with new Locked escrow
2025-08-03 06:42:01.701968+00:00
{'num_active_invoices': 2, 'invoices': [{1: {'payment_hash': 'c29f68fa20f5f42b01c14f3e64cc9cd27d0d8daa65d05c54b55b3eebd84c3aad', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.01798248291015625}
.Updating order with new Locked bond from maker
2025-08-03 06:42:02.907502+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': 'f409c44f59f8b5ae55f2c6f879c2969a4a0589745db64136770542da38e831b5', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.0506749153137207}
Updating order with new Locked bond from taker
2025-08-03 06:42:03.613020+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '697e4310538536692f00d201cf8f3edc2942cf632c65c78d17c5d521c0e4b722', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.12094783782958984}
.Updating order with new Locked bond from maker
2025-08-03 06:42:05.033017+00:00
{'num_active_invoices': 1, 'invoices': [{0: {'payment_hash': '315cc9a42336c9ac6f8906709f07189ed7b8b921d297708cc27db69a6fc4171a', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.05780029296875}
Updating order with new Locked bond from taker
2025-08-03 06:42:05.684412+00:00
{'num_active_invoices': 2, 'invoices': [{0: {'payment_hash': '2f885d40da840078168f3f0b3e5127d962c699da842f732d0b0508d006ff0474', 'old_status': 'Generated', 'new_status': 'Locked'}}], 'time': 0.0805976390838623}
.
----------------------------------------------------------------------
Ran 63 tests in 67.535s

OK
Destroying test database for alias 'default'...

Screenshots

Maker form description
Maker form error

The message shows 200 instead of 240 because I changed the value after taking it.

description_error
Order details

Outdated

order_details

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.

@aftermath2 aftermath2 force-pushed the order_description branch 2 times, most recently from d6806a1 to d5b8cd7 Compare August 13, 2025 19:16
@aftermath2
Copy link
Contributor Author

@KoalaSat Updated the base branch and rebased. I think it's ready to be reviewed, please let me know if I should change anything.

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.

Thanks for your work as usual @aftermath2 this will be indeed a very useful attribute for some users

Please accept a small tip for your work. Paste here a LN invoice with a long expiration date for 200,000 Satoshis

@KoalaSat KoalaSat merged commit e8a3fc8 into RoboSats:main Sep 27, 2025
2 of 3 checks passed
@aftermath2 aftermath2 deleted the order_description branch September 28, 2025 11:32
@aftermath2
Copy link
Contributor Author

@KoalaSat @RobosatsDevFund Thank you!!

lnbc2m1p5dj890sp5zj3h7m7nxgxjv9lm7jphshntqf0eap7mw5ehq8k70wk40xjv0vaspp50dhe0ygwfprcqmv3mzh7rn7nhy4m50dx0tpz3gavplxv6umk5x8qhp5uwcvgs5clswpfxhm7nyfjmaeysn6us0yvjdexn9yjkv3k7zjhp2sxq9z0rgqcqpnrzjq0xp6zfjhwvmq6tltd09jcdc82ml6eh3alzvnaw8httxcx7tu78syrvfkqqqm0qqqyqqqqlgqqqvx5qqjq9qxpqysgqdkycl9la04nvu89jg2vkfwgp38jzjcme8q6x6vv6ueau3k73t7qzxvja4j6jzm6urcw3ru53855an4k9xcmw9npeh3w24ctlxpqypqgp7625v7

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.

Improve orders payment methods details
2 participants