Skip to content

[wip] lnwallet+walletrpc: add SubmitPackage and related RPC call #9784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions chainreg/no_chain_backend.go
Original file line number Diff line number Diff line change
@@ -224,4 +224,10 @@ func (n *NoChainSource) MapRPCErr(err error) error {
return err
}

func (n *NoChainSource) SubmitPackage([]*wire.MsgTx, *wire.MsgTx,
*float64) (*btcjson.SubmitPackageResult, error) {

return nil, errNotImplemented
}

var _ chain.Interface = (*NoChainSource)(nil)
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -217,6 +217,10 @@ replace github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2
// allows us to specify that as an option.
replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display

replace github.com/btcsuite/btcwallet => github.com/bhandras/btcwallet v0.11.1-0.20250507171803-0de1c46b1cfc

replace github.com/btcsuite/btcd => github.com/bhandras/btcd v0.22.0-beta.0.20250507171227-f18160c86e92

// If you change this please also update docs/INSTALL.md and GO_VERSION in
// Makefile (then run `make lint` to see where else it needs to be updated as
// well).
26 changes: 9 additions & 17 deletions go.sum
Original file line number Diff line number Diff line change
@@ -39,17 +39,13 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M=
github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd/go.mod h1:nm3Bko6zh6bWP60UxwoT5LzdGJsQJaPo6HjduXq9p6A=
github.com/btcsuite/btcd v0.24.3-0.20250318170759-4f4ea81776d6 h1:8n9k3I7e8DkpdQ5YAP4j8ly/LSsbe6qX9vmVbrUGvVw=
github.com/btcsuite/btcd v0.24.3-0.20250318170759-4f4ea81776d6/go.mod h1:OmM4kFtB0klaG/ZqT86rQiyw/1iyXlJgc3UHClPhhbs=
github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA=
github.com/bhandras/btcd v0.22.0-beta.0.20250507171227-f18160c86e92 h1:/H5Dv5VoKqsXkI3iZc6D3xonibJS6YdPHgAa2XkFHi0=
github.com/bhandras/btcd v0.22.0-beta.0.20250507171227-f18160c86e92/go.mod h1:OmM4kFtB0klaG/ZqT86rQiyw/1iyXlJgc3UHClPhhbs=
github.com/bhandras/btcwallet v0.11.1-0.20250507171803-0de1c46b1cfc h1:RvT6udxYM857Kvj5fEkWhTo0wAT0t7R7oOgYSoLJOLY=
github.com/bhandras/btcwallet v0.11.1-0.20250507171803-0de1c46b1cfc/go.mod h1:PZ4WgE93vP5TBchtfrlvf5GT6P9ul0tM8rTH1BSYloo=
github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE=
github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurTXGPFfiQ=
github.com/btcsuite/btcd/btcec/v2 v2.3.4/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04=
github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A=
github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE=
github.com/btcsuite/btcd/btcutil v1.1.5 h1:+wER79R5670vs/ZusMTF1yTcRYE5GUsFbdjdisflzM8=
github.com/btcsuite/btcd/btcutil v1.1.5/go.mod h1:PSZZ4UitpLBWzxGd5VGOrLnmOjtPP/a6HaFo12zMs00=
github.com/btcsuite/btcd/btcutil/psbt v1.1.8 h1:4voqtT8UppT7nmKQkXV+T9K8UyQjKOn2z/ycpmJK8wg=
@@ -63,9 +59,6 @@ github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c h1:4HxD1lBUGUddhzg
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c/go.mod h1:w7xnGOhwT3lmrS4H3b/D1XAXxvh+tbhUm8xeHN2y3TQ=
github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084 h1:y3bvkt8ki0KX35eUEU8XShRHusz1S+55QwXUTmxn888=
github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084/go.mod h1:XItGUfVOxotJL8kkuk2Hj3EVow5KCugXl3wWfQ6K0AE=
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
github.com/btcsuite/btcwallet v0.16.14 h1:CofysgmI1ednkLsXontAdBoXJkbiim7unXnFKhLLjnE=
github.com/btcsuite/btcwallet v0.16.14/go.mod h1:H6dfoZcWPonM2wbVsR2ZBY0PKNZKdQyLAmnX8vL9JFA=
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5 h1:Rr0njWI3r341nhSPesKQ2JF+ugDSzdPoeckS75SeDZk=
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5/go.mod h1:+tXJ3Ym0nlQc/iHSwW1qzjmPs3ev+UVWMbGgfV1OZqU=
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2 h1:YEO+Lx1ZJJAtdRrjuhXjWrYsmAk26wLTlNzxt2q0lhk=
@@ -80,9 +73,7 @@ github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JG
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg=
github.com/btcsuite/golangcrypto v0.0.0-20150304025918-53f62d9b43e8/go.mod h1:tYvUd8KLhm/oXvUeSEs2VlLghFjQt9+ZaF9ghH0JNjc=
github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY=
github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I=
github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 h1:R8vQdOQdZ9Y3SkEwmHoWBmX1DNXhXZqlTpq6s4tyJGc=
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY=
github.com/btcsuite/winsvc v1.0.0 h1:J9B4L7e3oqhXOcm+2IuNApwzQec85lE+QaikUcCs+dk=
@@ -427,13 +418,10 @@ github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc=
github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0=
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q=
@@ -518,6 +506,7 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY=
@@ -613,6 +602,7 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
golang.org/x/crypto v0.20.0/go.mod h1:Xwo95rrVNIoSMx9wa1JroENMToLWn3RNVrTBpLHgZPQ=
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
@@ -634,7 +624,6 @@ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA=
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -658,6 +647,7 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8=
golang.org/x/net v0.39.0 h1:ZCu7HMWDxpXpaiKdhzIfaltL9Lp31x/3fCP11bc6/fY=
golang.org/x/net v0.39.0/go.mod h1:X7NRbYVEA+ewNkCNyJ513WmMdQ3BineSwVtN2zD/d+E=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
@@ -717,6 +707,7 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
@@ -725,6 +716,7 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk=
golang.org/x/term v0.31.0 h1:erwDkOK1Msy6offm1mOgvspSkslFnIGsFnxOKoufg3o=
golang.org/x/term v0.31.0/go.mod h1:R4BeIy7D95HzImkxGkTW1UQTtP54tio2RyHz7PwK0aw=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Loading

Unchanged files with check annotations Beta

}
// Compile-time constraint to ensure MockChain implements the Chain interface.
var _ chain.Interface = (*MockChain)(nil)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / check commits

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-cover)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / lint code

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)) (typecheck)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / lint code

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)) (typecheck)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / lint code

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)) (typecheck)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / lint code

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage) (typecheck)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="kvdb_etcd")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_postgres")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit tags="test_db_sqlite")

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)

Check failure on line 19 in lnmock/chain.go

GitHub Actions / run unit tests (unit-race)

cannot use (*MockChain)(nil) (value of type *MockChain) as chain.Interface value in variable declaration: *MockChain does not implement chain.Interface (missing method SubmitPackage)
func (m *MockChain) Start() error {
args := m.Called()
"github.com/lightningnetwork/lnd/graph/db/models"
"github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/lnmock"

Check failure on line 33 in discovery/gossiper_test.go

GitHub Actions / lint code

could not import github.com/lightningnetwork/lnd/lnmock (-: # github.com/lightningnetwork/lnd/lnmock
"github.com/lightningnetwork/lnd/lnpeer"
"github.com/lightningnetwork/lnd/lntest/mock"
"github.com/lightningnetwork/lnd/lntest/wait"
"github.com/lightningnetwork/lnd/fn/v2"
"github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/kvdb"
"github.com/lightningnetwork/lnd/lnmock"

Check failure on line 20 in contractcourt/briefcase_test.go

GitHub Actions / lint code

could not import github.com/lightningnetwork/lnd/lnmock (-: # github.com/lightningnetwork/lnd/lnmock
"github.com/lightningnetwork/lnd/lntest/channels"
"github.com/lightningnetwork/lnd/lnwallet"
"github.com/stretchr/testify/require"
"github.com/lightningnetwork/lnd/graph/db/models"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/kvdb"
"github.com/lightningnetwork/lnd/lnmock"

Check failure on line 25 in channeldb/channel_test.go

GitHub Actions / lint code

could not import github.com/lightningnetwork/lnd/lnmock (-: # github.com/lightningnetwork/lnd/lnmock
"github.com/lightningnetwork/lnd/lntest/channels"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningnetwork/lnd/lnwire"