Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b1832e9
build: pin lnd to the aux HTLC revocation series
GeorgeTsagk Apr 19, 2026
6c8707b
tapchannel: add revocation sweep descriptors
GeorgeTsagk Apr 19, 2026
c63d122
tapchannel+server: pass through NotifyBroadcast skip flag
GeorgeTsagk Apr 19, 2026
c6a0a25
tapchannel: add revocation sweep descriptor sign+verify tests
GeorgeTsagk Apr 19, 2026
6c27b35
tapfeatures+tapchannelmsg: add DeterministicHTLCs feature bit and com…
GeorgeTsagk Apr 19, 2026
e2581e9
tapchannel+server: implement HtlcSigHashType and thread Deterministic…
GeorgeTsagk Apr 19, 2026
7fbfa63
tapchannel: sweep second-level revoked HTLC outputs
GeorgeTsagk Apr 19, 2026
dd002b8
tapchannel+server: use AuxNotifyOpts for NotifyBroadcast
GeorgeTsagk Apr 19, 2026
c47a891
tapchannel: import and sweep second-level HTLCs for non-breach force …
GeorgeTsagk Apr 19, 2026
f368618
tapd-integrated: increase lndclient RPC timeout to 2 minutes
GeorgeTsagk Apr 19, 2026
2b7292e
itest: test second-level HTLC revocation and adapt assertions for Det…
GeorgeTsagk Apr 19, 2026
d09b194
tapchannel+server: adapt call sites to lnd revocation API
GeorgeTsagk Jul 16, 2026
8a2e940
multi: fund second-level HTLCs via CPFP anchor instead of large baked…
GeorgeTsagk Aug 17, 2026
b97ba5f
tapchannel: address revocation sweep review feedback
GeorgeTsagk Aug 20, 2026
cac7748
tapchannel: add second-level leaf and tweak round-trip tests
GeorgeTsagk Aug 20, 2026
82ecebd
tapchannel: degrade instead of aborting on missing breach HTLC data
GeorgeTsagk Aug 26, 2026
9f98bd2
tapchannel: harden second-level proof import
GeorgeTsagk Aug 26, 2026
d8afaba
tapchannel: scope zero sweep budget to second-level HTLC inputs
GeorgeTsagk Aug 26, 2026
4797a02
tapcfg: restore an upper bound for psbt-max-fee-ratio
GeorgeTsagk Aug 26, 2026
e72f995
tapchannel: thread negotiated sighash mode into dust checks
GeorgeTsagk Aug 26, 2026
3c83b8f
tapchannel: take the HTLC sighash mode from lnd, STXO flags from the …
GeorgeTsagk Aug 26, 2026
5b77be0
tapchannel: honor the job's explicit HTLC timeout
GeorgeTsagk Aug 26, 2026
5b78d1c
multi: gate the deterministic HTLC carrier value by feature bit
GeorgeTsagk Aug 26, 2026
39cc960
tapchannel+tapsend: drive real tweak consumers in round-trip test
GeorgeTsagk Aug 26, 2026
d7401ee
tapchannel: test second-level direction and missing sig rejection
GeorgeTsagk Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ itest-cc: build-itest-integrated clean-cc-itest-logs
itest-cc-compat: build-itest-integrated clean-cc-itest-logs
@$(call print, "Running backward compatibility integration tests.")
date
CGO_ENABLED=0 $(GOTEST) ./itest/custom_channels -v -tags="$(ITEST_TAGS)" -test.run='TestBackwardsCompatChannels|TestSpenderLeafUpgrade' -test.timeout=60m -logdir=regtest/.logs
CGO_ENABLED=0 $(GOTEST) ./itest/custom_channels -v -tags="$(ITEST_TAGS)" -test.run='TestBackwardsCompatChannels|TestSpenderLeafUpgrade|TestDeterministicHtlcsUpgrade' -test.timeout=60m -logdir=regtest/.logs

build-compat-binary:
@$(call print, "Building compat binary for $(version).")
Expand Down
7 changes: 4 additions & 3 deletions asset/sign_descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ type SignDescriptor struct {
KeyDesc keychain.KeyDescriptor

// SingleTweak is a scalar that is added to the private key before
// signing. At most one of SingleTweak and DoubleTweak is set.
// signing. When both tweaks are set, lnd applies DoubleTweak first
// and SingleTweak second.
SingleTweak []byte

// DoubleTweak is a private key that is combined with the signing key
// in a revocation style derivation before signing. At most one of
// SingleTweak and DoubleTweak is set.
// in a revocation style derivation before signing. Second-level HTLC
// signing for aux channels sets it together with SingleTweak.
DoubleTweak *btcec.PrivateKey

// TapTweak is the input to the taproot tweak that turns the internal
Expand Down
2 changes: 2 additions & 0 deletions cmd/tapd-integrated/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"os"
"path/filepath"
"sync"
"time"

"github.com/btcsuite/btclog/v2"
"github.com/jessevdk/go-flags"
Expand Down Expand Up @@ -278,6 +279,7 @@ func run() error {
BlockUntilChainNotifier: true,
BlockUntilUnlocked: true,
CallerCtx: ctx,
RPCTimeout: 2 * time.Minute,
}
if cfg.Lnd.NoMacaroons {
// Use a dummy macaroon that lndclient can deserialize.
Expand Down
25 changes: 22 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ require (
go.etcd.io/etcd/server/v3 v3.5.12 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0 // indirect
go.opentelemetry.io/otel v1.47.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0 // indirect
Expand Down Expand Up @@ -236,5 +236,24 @@ replace github.com/prometheus/common => github.com/prometheus/common v0.66.1
// Note this is a temporary replace and will be removed when taprpc is tagged.
replace github.com/lightninglabs/taproot-assets/taprpc => ./taprpc

// lnd master uses queries of its sqldb submodule that are not tagged yet.
replace github.com/lightningnetwork/lnd/sqldb => github.com/lightningnetwork/lnd/sqldb v1.0.13-0.20261125195613-f7e5f83a1f59
replace github.com/lightningnetwork/lnd => github.com/GeorgeTsagk/lnd v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/sqldb => github.com/GeorgeTsagk/lnd/sqldb v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/tlv => github.com/GeorgeTsagk/lnd/tlv v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/cert => github.com/GeorgeTsagk/lnd/cert v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/clock => github.com/GeorgeTsagk/lnd/clock v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/healthcheck => github.com/GeorgeTsagk/lnd/healthcheck v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/kvdb => github.com/GeorgeTsagk/lnd/kvdb v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/queue => github.com/GeorgeTsagk/lnd/queue v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/tor => github.com/GeorgeTsagk/lnd/tor v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/actor => github.com/GeorgeTsagk/lnd/actor v0.0.0-20261126091253-3188f00ea5f8

replace github.com/lightningnetwork/lnd/fn/v2 => github.com/GeorgeTsagk/lnd/fn/v2 v2.0.0-20261126091253-3188f00ea5f8
48 changes: 24 additions & 24 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,28 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/GeorgeTsagk/lnd v0.0.0-20261126091253-3188f00ea5f8 h1:/aulCTSFePCPw1yaGQHmJ/7bk7paGlUHhkccl+Qnsn8=
github.com/GeorgeTsagk/lnd v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:aj4fTi1Fbh8RN/doRXug7X7/a/z6Tpc/btno0j5Ed5k=
github.com/GeorgeTsagk/lnd/actor v0.0.0-20261126091253-3188f00ea5f8 h1:XYTLqv+ZaukWVXGmzRRVN0EXVKz+ulXE5UJob44QA4A=
github.com/GeorgeTsagk/lnd/actor v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:A8xDEjgZR3QwKYkj+Qwkm1QFNfV3SVsMPgyQSax4tkI=
github.com/GeorgeTsagk/lnd/cert v0.0.0-20261126091253-3188f00ea5f8 h1:9fB0Y4fl0ezRWGIrTQFuERnd9joM8XuwFluVKNmYby0=
github.com/GeorgeTsagk/lnd/cert v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:9Zsr3g1UgJifCVBzJA5OXDjeXryO8zBK1TlkPjlZgfY=
github.com/GeorgeTsagk/lnd/clock v0.0.0-20261126091253-3188f00ea5f8 h1:gPvaMmjPkVYviOEyHrPGBY/lZ5B5okNz39XHW/D+rmY=
github.com/GeorgeTsagk/lnd/clock v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:XKU9tG3Q4zGwdxf0dsT7ejMwI958eaqJQ/n3SKglzvw=
github.com/GeorgeTsagk/lnd/fn/v2 v2.0.0-20261126091253-3188f00ea5f8 h1:FqnhHduDq2ZQledj0PS5KZKgL+tU6/C5uC3CAG/TB9g=
github.com/GeorgeTsagk/lnd/fn/v2 v2.0.0-20261126091253-3188f00ea5f8/go.mod h1:ovPhLFStKt4eru5U1prNLII22/XZdio7xgyZb4JLk0w=
github.com/GeorgeTsagk/lnd/healthcheck v0.0.0-20261126091253-3188f00ea5f8 h1:rLpUisrQsBggPSpmxYmAxmyKWJpui4Yk5C+oxBeGNaw=
github.com/GeorgeTsagk/lnd/healthcheck v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:VIkkpPrBNGZeh9wugLXJ1tAlsEkAfMD05uC9klwxy3o=
github.com/GeorgeTsagk/lnd/kvdb v0.0.0-20261126091253-3188f00ea5f8 h1:3x+z/3Mq9bjudOLDNCJBsqX26aqyYUWbx+9B9zX2ANs=
github.com/GeorgeTsagk/lnd/kvdb v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:Ugkbzzhy7wcYEqv3FeB7UubIskZv+i6No803FOBThYs=
github.com/GeorgeTsagk/lnd/queue v0.0.0-20261126091253-3188f00ea5f8 h1:gQGwHhrKQRJPE8pTVI4ZfvMS05Icf//ONLcSbFFE84o=
github.com/GeorgeTsagk/lnd/queue v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:PqIifmqlwdKsazsCaTtSpOc8KzZQNy88dGGZCOy8gc4=
github.com/GeorgeTsagk/lnd/sqldb v0.0.0-20261126091253-3188f00ea5f8 h1:9pEO+7qTmKfE8hwCC7bMgxuMCPlysCzl+yTQs1IBhxY=
github.com/GeorgeTsagk/lnd/sqldb v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:DRKd6xYKPANEzUpRLD27JUt0pR8KI8snDAgrNhIfbSY=
github.com/GeorgeTsagk/lnd/tlv v0.0.0-20261126091253-3188f00ea5f8 h1:dTMTeMsi49H8tSTKzGdbBrWK62MpnUN2ZVU2b85xlTA=
github.com/GeorgeTsagk/lnd/tlv v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:Tj4LzBXL5SIZdU/p1B4RF/qjcu6ob+r1nyzi8T85n8E=
github.com/GeorgeTsagk/lnd/tor v0.0.0-20261126091253-3188f00ea5f8 h1:KsjvCmmD4aPVy+ABBzjqJ6y2WNZe8MtYu6HMEJByMHQ=
github.com/GeorgeTsagk/lnd/tor v0.0.0-20261126091253-3188f00ea5f8/go.mod h1:pkKYUO+cGOUuFg52FH3RMcm2luHTHkrlsf2Lm6ceazA=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
Expand Down Expand Up @@ -1067,30 +1089,8 @@ github.com/lightninglabs/protobuf-go-hex-display v1.34.2-hex-display h1:w7FM5LH9
github.com/lightninglabs/protobuf-go-hex-display v1.34.2-hex-display/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
github.com/lightningnetwork/lightning-onion v1.4.0 h1:qWE1icOH4AKXRcq1KCzt6P/TesqptgBTP++V7wowTc0=
github.com/lightningnetwork/lightning-onion v1.4.0/go.mod h1:YDPkvVTVQ6FBBE6Yj93tDd7zA3iTSrryi9xq46i7bKE=
github.com/lightningnetwork/lnd v0.21.0-beta.rc2.0.20261125195613-f7e5f83a1f59 h1:13Wr8meYwF5JXffRXrLU29aBiNBETQcyOAr58zfzcdg=
github.com/lightningnetwork/lnd v0.21.0-beta.rc2.0.20261125195613-f7e5f83a1f59/go.mod h1:aj4fTi1Fbh8RN/doRXug7X7/a/z6Tpc/btno0j5Ed5k=
github.com/lightningnetwork/lnd/actor v0.0.6 h1:Ge8N2wivARG+27qJBwTlB0vwsypStZYZy8vk4Zl38sU=
github.com/lightningnetwork/lnd/actor v0.0.6/go.mod h1:YAsoniSbY/cAM9HTVNfZLvt7RI6swDxy6wzPspTcMZg=
github.com/lightningnetwork/lnd/cert v1.2.2 h1:71YK6hogeJtxSxw2teq3eGeuy4rHGKcFf0d0Uy4qBjI=
github.com/lightningnetwork/lnd/cert v1.2.2/go.mod h1:jQmFn/Ez4zhDgq2hnYSw8r35bqGVxViXhX6Cd7HXM6U=
github.com/lightningnetwork/lnd/clock v1.1.1 h1:OfR3/zcJd2RhH0RU+zX/77c0ZiOnIMsDIBjgjWdZgA0=
github.com/lightningnetwork/lnd/clock v1.1.1/go.mod h1:mGnAhPyjYZQJmebS7aevElXKTFDuO+uNFFfMXK1W8xQ=
github.com/lightningnetwork/lnd/fn/v2 v2.0.10 h1:8GiXDXmF9QPnphLVxcn0KAgDTfRsyQoaIJmh7GXX4Ng=
github.com/lightningnetwork/lnd/fn/v2 v2.0.10/go.mod h1:wg3OyJ9eS14Az8HAZMMxqVjJ+nkKw97uPF/45ICOvs4=
github.com/lightningnetwork/lnd/healthcheck v1.2.6 h1:1sWhqr93GdkWy4+6U7JxBfcyZIE78MhIHTJZfPx7qqI=
github.com/lightningnetwork/lnd/healthcheck v1.2.6/go.mod h1:Mu02um4CWY/zdTOvFje7WJgJcHyX2zq/FG3MhOAiGaQ=
github.com/lightningnetwork/lnd/kvdb v1.5.1 h1:OG5cDbqggxiCFKAJbSPw0PfQovi+0odCZAAU5r5b+ho=
github.com/lightningnetwork/lnd/kvdb v1.5.1/go.mod h1:5lubXYoXHDBWBYKmC+2we7qgkjjz0cEZ/5QSQkxQSec=
github.com/lightningnetwork/lnd/queue v1.2.1 h1:51M3axuVk/Fu7YzpcsZ1WA1JRlbop/6NnuT+B2KD0VQ=
github.com/lightningnetwork/lnd/queue v1.2.1/go.mod h1:KxEQGFi10Y+fM32d8pIQif775dqIbZbyy2JhfSojilw=
github.com/lightningnetwork/lnd/sqldb v1.0.13-0.20261125195613-f7e5f83a1f59 h1:hR0hqvxygVm0L2ELBz5imQ0TeYkZ7YluU2jwciwj2Zk=
github.com/lightningnetwork/lnd/sqldb v1.0.13-0.20261125195613-f7e5f83a1f59/go.mod h1:DRKd6xYKPANEzUpRLD27JUt0pR8KI8snDAgrNhIfbSY=
github.com/lightningnetwork/lnd/ticker v1.1.1 h1:J/b6N2hibFtC7JLV77ULQp++QLtCwT6ijJlbdiZFbSM=
github.com/lightningnetwork/lnd/ticker v1.1.1/go.mod h1:waPTRAAcwtu7Ji3+3k+u/xH5GHovTsCoSVpho0KDvdA=
github.com/lightningnetwork/lnd/tlv v1.4.1 h1:cCx8H4mC6TZ2Pc0aNEYxTqdZoRQA7+XNJa95gciKXNU=
github.com/lightningnetwork/lnd/tlv v1.4.1/go.mod h1:RvxxfVTCctKzKVWJDyQZqSdu3JV7OjaiQGF06hBCZ+s=
github.com/lightningnetwork/lnd/tor v1.2.0 h1:Xled9KE+rdTPEMDVJE5VrSoMNkJq6EfH3NCF6pLP4h4=
github.com/lightningnetwork/lnd/tor v1.2.0/go.mod h1:tB6/Hsk5nIm6xkOPaidd4q1at4x4gF6Bpu/t2UQxYgM=
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796 h1:sjOGyegMIhvgfq5oaue6Td+hxZuf3tDC8lAPrFldqFw=
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796/go.mod h1:3p7ZTf9V1sNPI5H8P3NkTFF4LuwMdPl2DodF60qAKqY=
github.com/ltcsuite/ltcutil v0.0.0-20181217130922-17f3b04680b6/go.mod h1:8Vg/LTOO0KYa/vlHWJ6XZAevPQThGH5sufO0Hrou/lA=
Expand Down Expand Up @@ -1281,8 +1281,8 @@ go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0 h1:8tvICD4vSTOOsNrsI4Ljf6C+6UKvpTEH5XY3JMoyPoo=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0/go.mod h1:z9+yiacE0IHRqM4qFfkbt/JYlmYXgss8GY/jXoNuPJI=
go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM=
go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0 h1:QRefszxJmfPdjXUUm3j6iDzY03mTPXMjqErFqQ67vUg=
Expand Down
17 changes: 13 additions & 4 deletions itest/custom_channels/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func mineBlocksSlow(t *ccHarnessTest, net *itest.IntegratedNetworkHarness,
var txids []*chainhash.Hash
var err error
if numTxs > 0 {
txids, err = waitForNTxsInMempool(
txids, err = waitForAtLeastNTxsInMempool(
net.Miner, numTxs,
wait.MinerMempoolTimeout,
)
Expand Down Expand Up @@ -367,8 +367,8 @@ func waitForNTxsInMempool(m *miner.HarnessMiner, n int,
}
}

// waitForAtLeastNTxsInMempool polls until finding at least n transactions
// in the miner's mempool, returning all txids present.
// waitForAtLeastNTxsInMempool polls until finding at least n
// transactions in the miner's mempool, returning all txids present.
func waitForAtLeastNTxsInMempool(m *miner.HarnessMiner, n int,
timeout time.Duration) ([]*chainhash.Hash, error) {

Expand All @@ -388,7 +388,8 @@ func waitForAtLeastNTxsInMempool(m *miner.HarnessMiner, n int,

if len(mempool) >= n {
result := make(
[]*chainhash.Hash, len(mempool),
[]*chainhash.Hash,
len(mempool),
)
for i := range mempool {
result[i] = &mempool[i]
Expand All @@ -399,6 +400,14 @@ func waitForAtLeastNTxsInMempool(m *miner.HarnessMiner, n int,
}
}

// waitForNonEmptyMempool polls until the mempool is non-empty, then
// returns a snapshot of its current contents.
func waitForNonEmptyMempool(m *miner.HarnessMiner,
timeout time.Duration) ([]*chainhash.Hash, error) {

return waitForAtLeastNTxsInMempool(m, 1, timeout)
}

// assertTxInBlock asserts that a transaction with the given hash is included
// in the block.
func assertTxInBlock(t *ccHarnessTest, block *wire.MsgBlock,
Expand Down
Loading
Loading