sweep: make sweeper aware of unconfirmed parent transactions.

Extend the fee estimator to take into account parent transactions with
their weights and fees.

Do not try to cpfp parent transactions that have a higher fee rate than
the sweep tx fee rate.
This commit is contained in:
Joost Jager committed 2020-09-17 12:30:39 +02:00
1 parent 3e3d8487fb
commit 681496b474
13 files changed
+334 -30

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ import (
var (
defaultTestTimeout = 5 * time.Second
processingDelay = 1 * time.Second
mockChainHash, _ = chainhash.NewHashFromStr("00aabbccddeeff")
mockChainHeight = int32(100)
)