diff --git a/channeldb/forwarding_package.go b/channeldb/forwarding_package.go index d28b7ed30..53e8881d3 100644 --- a/channeldb/forwarding_package.go +++ b/channeldb/forwarding_package.go @@ -39,6 +39,38 @@ var ( // fwdPackagesKey is the root-level bucket that all forwarding packages // are written. This bucket is further subdivided based on the short // channel ID of each channel. + // + // Bucket hierarchy: + // + // fwdPackagesKey(root-bucket) + // | + // |-- + // | | + // | |-- + // | | |-- ackFilterKey: + // | | |-- settleFailFilterKey: + // | | |-- fwdFilterKey: + // | | | + // | | |-- addBucketKey + // | | | |-- : + // | | | |-- : + // | | | ... + // | | | + // | | |-- failSettleBucketKey + // | | |-- : + // | | |-- : + // | | ... + // | | + // | |-- + // | | | + // | ... ... + // | + // | + // |-- + // | | + // | ... + // ... + // fwdPackagesKey = []byte("fwd-packages") // addBucketKey is the bucket to which all Add log updates are written.