Skip to content

unable to build/run lnd app: error "unknown field ChanID in struct literal" #9317

Discussion options

You must be logged in to vote

yes, I had

	github.com/lightningnetwork/lnd/sqldb v1.0.3 // indirect

changed it to:

	github.com/lightningnetwork/lnd/sqldb v1.0.5 // indirect

And resolved the issue. Another error came up which was:

# github.com/lightningnetwork/lnd/lnrpc
../../go/pkg/mod/github.com/lightningnetwork/[email protected]/lnrpc/rpc_utils.go:32:3: unknown field UseHexForBytes in struct literal of type protojson.MarshalOptions
../../go/pkg/mod/github.com/lightningnetwork/[email protected]/lnrpc/rpc_utils.go:40:3: unknown field UseHexForBytes in struct literal of type protojson.UnmarshalOptions

but I fixed it by adding:

replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-display v1.30.…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@99Percent
Comment options

Answer selected by 99Percent
@ViktorTigerstrom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants