Release v0.2.0

This commit is contained in:
Juan Pablo Civile
2019-12-17 17:32:12 -03:00
parent a60e97ace6
commit e874baf090
10 changed files with 43 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ type Invoice struct {
Network *Network
MilliSat string
Destination []byte
PaymentHash [32]byte
PaymentHash []byte
Expiry int64
Description string
}
@@ -60,7 +60,7 @@ func ParseInvoice(invoice string, network *Network) (*Invoice, error) {
Network: network,
MilliSat: milliSats,
Destination: parsedInvoice.Destination.SerializeCompressed(),
PaymentHash: *parsedInvoice.PaymentHash,
PaymentHash: parsedInvoice.PaymentHash[:],
Expiry: parsedInvoice.Timestamp.Unix() + int64(parsedInvoice.Expiry().Seconds()),
Description: description,
}, nil