mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
channeldb: add docs for fwd pkg bucket
This commit is contained in:
parent
7970ffcc2a
commit
0fff613f61
1 changed files with 32 additions and 0 deletions
|
@ -39,6 +39,38 @@ var (
|
||||||
// fwdPackagesKey is the root-level bucket that all forwarding packages
|
// fwdPackagesKey is the root-level bucket that all forwarding packages
|
||||||
// are written. This bucket is further subdivided based on the short
|
// are written. This bucket is further subdivided based on the short
|
||||||
// channel ID of each channel.
|
// channel ID of each channel.
|
||||||
|
//
|
||||||
|
// Bucket hierarchy:
|
||||||
|
//
|
||||||
|
// fwdPackagesKey(root-bucket)
|
||||||
|
// |
|
||||||
|
// |-- <shortChannelID>
|
||||||
|
// | |
|
||||||
|
// | |-- <height>
|
||||||
|
// | | |-- ackFilterKey: <encoded bytes of PkgFilter>
|
||||||
|
// | | |-- settleFailFilterKey: <encoded bytes of PkgFilter>
|
||||||
|
// | | |-- fwdFilterKey: <encoded bytes of PkgFilter>
|
||||||
|
// | | |
|
||||||
|
// | | |-- addBucketKey
|
||||||
|
// | | | |-- <index of LogUpdate>: <encoded bytes of LogUpdate>
|
||||||
|
// | | | |-- <index of LogUpdate>: <encoded bytes of LogUpdate>
|
||||||
|
// | | | ...
|
||||||
|
// | | |
|
||||||
|
// | | |-- failSettleBucketKey
|
||||||
|
// | | |-- <index of LogUpdate>: <encoded bytes of LogUpdate>
|
||||||
|
// | | |-- <index of LogUpdate>: <encoded bytes of LogUpdate>
|
||||||
|
// | | ...
|
||||||
|
// | |
|
||||||
|
// | |-- <height>
|
||||||
|
// | | |
|
||||||
|
// | ... ...
|
||||||
|
// |
|
||||||
|
// |
|
||||||
|
// |-- <shortChannelID>
|
||||||
|
// | |
|
||||||
|
// | ...
|
||||||
|
// ...
|
||||||
|
//
|
||||||
fwdPackagesKey = []byte("fwd-packages")
|
fwdPackagesKey = []byte("fwd-packages")
|
||||||
|
|
||||||
// addBucketKey is the bucket to which all Add log updates are written.
|
// addBucketKey is the bucket to which all Add log updates are written.
|
||||||
|
|
Loading…
Add table
Reference in a new issue