]> git.bitcoin.ninja Git - ldk-sample/commit
Try to sweep `SpendableOutputs` regularly, and in bulk
authorMatt Corallo <git@bluematt.me>
Sun, 7 May 2023 18:12:20 +0000 (18:12 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 17 May 2023 13:30:20 +0000 (13:30 +0000)
commitb0987a419c33d81ef1e8ff135b6ffaff75a6a236
treed9692e551eacffedd32f8d403f2558db3a3396a1
parenta0112e0db7bc145ee52859b1197104c76213daa1
Try to sweep `SpendableOutputs` regularly, and in bulk

Rather than trying to sweep `SpendableOutputs` every time we see
one, try to sweep them in bulk once an hour. Then, try to sweep
them repeatedly every hour forever, even after they're claimed.

Fixes #102.
src/main.rs
src/sweep.rs [new file with mode: 0644]