lnwire: use BigSize for encoding btc amount

This commit is contained in:
yyforyongyu
2025-07-01 21:28:48 +08:00
parent 04a2be29d2
commit 0f1cb54eb2
4 changed files with 34 additions and 38 deletions

View File

@@ -5,10 +5,8 @@ import (
crand "crypto/rand"
"encoding/hex"
"math"
"math/rand"
"net"
"testing"
"time"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcec/v2/ecdsa"
@@ -249,7 +247,3 @@ func TestLightningWireProtocol(t *testing.T) {
}))
}
}
func init() {
rand.Seed(time.Now().Unix())
}