mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 14:44:22 +01:00
chainntnfs/interface: add String method for SpendDetaill
This commit is contained in:
@@ -241,6 +241,12 @@ type SpendDetail struct {
|
|||||||
SpendingHeight int32
|
SpendingHeight int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// String returns a string representation of SpendDetail.
|
||||||
|
func (s *SpendDetail) String() string {
|
||||||
|
return fmt.Sprintf("%v[%d] spending %v at height=%v", s.SpenderTxHash,
|
||||||
|
s.SpenderInputIndex, s.SpentOutPoint, s.SpendingHeight)
|
||||||
|
}
|
||||||
|
|
||||||
// SpendEvent encapsulates a spentness notification. Its only field 'Spend' will
|
// SpendEvent encapsulates a spentness notification. Its only field 'Spend' will
|
||||||
// be sent upon once the target output passed into RegisterSpendNtfn has been
|
// be sent upon once the target output passed into RegisterSpendNtfn has been
|
||||||
// spent on the blockchain.
|
// spent on the blockchain.
|
||||||
|
|||||||
Reference in New Issue
Block a user