mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 16:55:13 +02:00
aezeed: expose BirthdayTime conversion from offset
This commit is contained in:
@@ -33,7 +33,7 @@ var (
|
||||
version0TestVectors = []TestVector{
|
||||
{
|
||||
version: 0,
|
||||
time: bitcoinGenesisDate,
|
||||
time: BitcoinGenesisDate,
|
||||
entropy: testEntropy,
|
||||
salt: testSalt,
|
||||
password: []byte{},
|
||||
@@ -466,7 +466,7 @@ func TestSeedEncodeDecode(t *testing.T) {
|
||||
now := time.Unix(nowInt, 0)
|
||||
seed := CipherSeed{
|
||||
InternalVersion: version,
|
||||
Birthday: uint16(now.Sub(bitcoinGenesisDate) / (time.Hour * 24)),
|
||||
Birthday: uint16(now.Sub(BitcoinGenesisDate) / (time.Hour * 24)),
|
||||
Entropy: entropy,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user