Add blockwork transfer system #653

Merged
parabit merged 4 commits from parabit/work-transfer-api into master 2026-11-10 18:48:54 +00:00
Owner
No description provided.
add current-blockwork transfer system
All checks were successful
CI / ckpool (pull_request) Successful in 28s
CI / lint (pull_request) Successful in 1m48s
CI / test-linux (pull_request) Successful in 5m17s
8bd8e0b6cc
fix: incorrect collapse of non-ln to single user in grouping (simulation only)
All checks were successful
CI / ckpool (pull_request) Successful in 16s
CI / lint (pull_request) Successful in 1m41s
CI / test-linux (pull_request) Successful in 5m39s
9ff47d0166
put new api endpoint behind a flag for later deployment
All checks were successful
CI / ckpool (pull_request) Successful in 17s
CI / lint (pull_request) Successful in 1m34s
CI / test-linux (pull_request) Successful in 5m48s
f3259ef87e
@ -375,0 +393,4 @@
),
tag = "payouts"
)]
pub(crate) async fn transfer_diff(
Owner

this function is not atomic, you read the balances first and then do the transfer. The core principle of a credit/debit system is balance check + transfer in one atomic transaction

this function is not atomic, you read the balances first and then do the transfer. The core principle of a credit/debit system is balance check + transfer in one atomic transaction
parabit marked this conversation as resolved
paratoxic requested changes 2026-11-06 17:57:56 +00:00
Dismissed
paratoxic left a comment

see comment. Also we need to think about how a user authorizes this transfer. Bip322 sig, probably need replay protection etc.

see comment. Also we need to think about how a user authorizes this transfer. Bip322 sig, probably need replay protection etc.
move balance check inside psql txn
All checks were successful
CI / ckpool (pull_request) Successful in 23s
CI / lint (pull_request) Successful in 1m49s
CI / test-linux (pull_request) Successful in 5m39s
257fa1d518
paratoxic approved these changes 2026-11-06 23:14:48 +00:00
parabit merged commit 7d13fe523a into master 2026-11-10 18:48:54 +00:00
parabit deleted branch parabit/work-transfer-api 2026-11-10 18:48:55 +00:00
parabit referenced this pull request from a commit 2026-11-10 18:48:55 +00:00
Sign in to join this conversation.
No description provided.