mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-14 12:42:48 +02:00
The zombie fallback in SQLStore.FetchChannelEdgesByID unconditionally constructed a models.NewV1Channel regardless of the requested gossip version. Use the passed version to select the correct constructor so that v2 zombie edges carry the right version. A new testFetchZombieEdgeVersioning versioned test verifies that zombie edges returned by FetchChannelEdgesByID have the correct gossip version for both v1 and v2. |
||
|---|---|---|
| .. | ||
| db | ||
| testdata | ||
| builder.go | ||
| builder_test.go | ||
| errors.go | ||
| interfaces.go | ||
| log.go | ||
| notifications_test.go | ||
| setup_test.go | ||
| stats.go | ||