lnwallet: track some more stats in channel state
This commit is contained in:
parent
d5f36d81c8
commit
093bbf40ad
@ -3,6 +3,7 @@ package lnwallet
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"sync"
|
"sync"
|
||||||
|
"time"
|
||||||
|
|
||||||
"li.lan/labs/plasma/chainntfs"
|
"li.lan/labs/plasma/chainntfs"
|
||||||
"li.lan/labs/plasma/revocation"
|
"li.lan/labs/plasma/revocation"
|
||||||
@ -60,7 +61,11 @@ type OpenChannelState struct {
|
|||||||
htlcTimeout uint32
|
htlcTimeout uint32
|
||||||
csvDelay 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 {
|
func (o *OpenChannelState) Encode(b bytes.Buffer) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user