mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
lnwallet: track some more stats in channel state
This commit is contained in:
parent
d5f36d81c8
commit
093bbf40ad
@ -3,6 +3,7 @@ package lnwallet
|
||||
import (
|
||||
"bytes"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"li.lan/labs/plasma/chainntfs"
|
||||
"li.lan/labs/plasma/revocation"
|
||||
@ -60,7 +61,11 @@ type OpenChannelState struct {
|
||||
htlcTimeout uint32
|
||||
csvDelay uint32
|
||||
|
||||
numUpdates uint64
|
||||
numUpdates uint64
|
||||
totalSatoshisSent uint64
|
||||
totalSatoshisReceived uint64
|
||||
// TODO(roasbeef): track fees?
|
||||
creationTime time.Time
|
||||
}
|
||||
|
||||
func (o *OpenChannelState) Encode(b bytes.Buffer) error {
|
||||
|
Loading…
Reference in New Issue
Block a user