Skip to content

Commit b7b379f

Browse files
committed
v2.4.0
1 parent 97c3377 commit b7b379f

12 files changed

+62
-27
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.16
1+
2.4.0

database_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010

1111
"github.com/FactomProject/factom"
12-
"github.com/FactomProject/wallet"
12+
"github.com/FactomProject/wallet/v2"
1313
)
1414

1515
func TestNewWallet(t *testing.T) {

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module github.com/FactomProject/wallet
1+
module github.com/FactomProject/wallet/v2
22

33
go 1.15
44

55
require (
66
github.com/FactomProject/btcutil v0.0.0-20200312214114-5fd3eaf71bd2
77
github.com/FactomProject/factoid v0.3.4
8-
github.com/FactomProject/factom v0.3.6-0.20190712163801-e7717c4ab072
9-
github.com/FactomProject/factomd v0.0.0-20201015012805-8378e47b26d2
8+
github.com/FactomProject/factom v0.4.0
9+
github.com/FactomProject/factomd v0.0.0-20201125033516-59a959e6c40f
1010
github.com/FactomProject/go-bip32 v0.3.6-0.20161206200006-3b593af1c415
1111
github.com/FactomProject/go-bip39 v0.3.6-0.20161217174232-d1007fb78d9a
1212
github.com/FactomProject/goleveldb v0.2.2-0.20170418171130-e7800c6976c5

go.sum

+44-9
Large diffs are not rendered by default.

importexport_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"os"
1111
"testing"
1212

13-
"github.com/FactomProject/wallet"
13+
"github.com/FactomProject/wallet/v2"
1414
)
1515

1616
func TestImportWithSpaces(t *testing.T) {

transaction_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/FactomProject/factom"
1111
"github.com/FactomProject/factomd/common/primitives"
12-
"github.com/FactomProject/wallet"
12+
"github.com/FactomProject/wallet/v2"
1313
)
1414

1515
func TestNewTransaction(t *testing.T) {

txdatabase.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func fblockHead() (interfaces.IFBlock, error) {
387387
if err != nil {
388388
return nil, err
389389
}
390-
dblock, _, err := factom.GetDBlock(dbhead)
390+
dblock, err := factom.GetDBlock(dbhead)
391391
if err != nil {
392392
return nil, err
393393
}
@@ -406,25 +406,25 @@ func fblockHead() (interfaces.IFBlock, error) {
406406
}
407407

408408
func getfblock(keymr string) (interfaces.IFBlock, error) {
409-
_, raw, err := factom.GetFBlock(keymr)
409+
raw, err := factom.GetRaw(keymr)
410410
if err != nil {
411411
return nil, err
412412
}
413413
return factoid.UnmarshalFBlock(raw)
414414
}
415415

416416
func getfblockbyheight(height uint32) (interfaces.IFBlock, error) {
417-
_, raw, err := factom.GetFBlockByHeight(int64(height))
417+
raw, err := factom.GetBlockByHeightRaw("f", int64(height))
418418
if err != nil {
419419
return nil, err
420420
}
421-
return factoid.UnmarshalFBlock(raw)
421+
return factoid.UnmarshalFBlock([]byte(raw.RawData))
422422
}
423423

424424
func getdblockbyheight(height uint32) (interfaces.IDirectoryBlock, error) {
425-
_, raw, err := factom.GetDBlockByHeight(int64(height))
425+
raw, err := factom.GetBlockByHeightRaw("d", int64(height))
426426
if err != nil {
427427
return nil, err
428428
}
429-
return directoryBlock.UnmarshalDBlock(raw)
429+
return directoryBlock.UnmarshalDBlock([]byte(raw.RawData))
430430
}

txdatabase_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/FactomProject/factomd/common/interfaces"
1111
"github.com/FactomProject/factomd/testHelper"
12-
"github.com/FactomProject/wallet"
12+
"github.com/FactomProject/wallet/v2"
1313
)
1414

1515
func TestTXDatabaseOverlay(t *testing.T) {

util_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package wallet_test
77
import (
88
"testing"
99

10-
"github.com/FactomProject/wallet"
10+
"github.com/FactomProject/wallet/v2"
1111
)
1212

1313
func TestSeedString(t *testing.T) {

v1conversion_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/FactomProject/wallet"
11+
"github.com/FactomProject/wallet/v2"
1212
)
1313

1414
func TestImportV1Wallet(t *testing.T) {

walletDBO_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/FactomProject/wallet"
7+
"github.com/FactomProject/wallet/v2"
88
)
99

1010
func TestWalletDBO(t *testing.T) {

wsapi/wsapi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/FactomProject/factomd/common/interfaces"
2929
"github.com/FactomProject/factomd/common/primitives"
3030
"github.com/FactomProject/factomd/database/securedb"
31-
"github.com/FactomProject/wallet"
31+
"github.com/FactomProject/wallet/v2"
3232
"github.com/FactomProject/web"
3333
)
3434

0 commit comments

Comments
 (0)