mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
update for tmlibs v0.9.0
This commit is contained in:
parent
af703620d4
commit
9ff99114b1
31
Gopkg.lock
generated
31
Gopkg.lock
generated
@ -211,7 +211,7 @@
|
|||||||
"nfs",
|
"nfs",
|
||||||
"xfs"
|
"xfs"
|
||||||
]
|
]
|
||||||
revision = "94663424ae5ae9856b40a9f170762b4197024661"
|
revision = "40f013a808ec4fa79def444a1a56de4d1727efcb"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@ -284,20 +284,7 @@
|
|||||||
"leveldb/table",
|
"leveldb/table",
|
||||||
"leveldb/util"
|
"leveldb/util"
|
||||||
]
|
]
|
||||||
revision = "e2150783cd35f5b607daca48afd8c57ec54cc995"
|
revision = "0d5a0ceb10cf9ab89fdd744cc8c50a83134f6697"
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
name = "github.com/tendermint/abci"
|
|
||||||
packages = [
|
|
||||||
"client",
|
|
||||||
"example/code",
|
|
||||||
"example/counter",
|
|
||||||
"example/kvstore",
|
|
||||||
"server",
|
|
||||||
"types"
|
|
||||||
]
|
|
||||||
revision = "198dccf0ddfd1bb176f87657e3286a05a6ed9540"
|
|
||||||
version = "v0.12.0"
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@ -327,10 +314,11 @@
|
|||||||
"flowrate",
|
"flowrate",
|
||||||
"log",
|
"log",
|
||||||
"merkle",
|
"merkle",
|
||||||
|
"merkle/tmhash",
|
||||||
"test"
|
"test"
|
||||||
]
|
]
|
||||||
revision = "692f1d86a6e2c0efa698fd1e4541b68c74ffaf38"
|
revision = "49596e0a1f48866603813df843c9409fc19805c6"
|
||||||
version = "v0.8.4"
|
version = "v0.9.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@ -342,6 +330,7 @@
|
|||||||
"curve25519",
|
"curve25519",
|
||||||
"hkdf",
|
"hkdf",
|
||||||
"internal/chacha20",
|
"internal/chacha20",
|
||||||
|
"internal/subtle",
|
||||||
"nacl/box",
|
"nacl/box",
|
||||||
"nacl/secretbox",
|
"nacl/secretbox",
|
||||||
"openpgp/armor",
|
"openpgp/armor",
|
||||||
@ -350,7 +339,7 @@
|
|||||||
"ripemd160",
|
"ripemd160",
|
||||||
"salsa20/salsa"
|
"salsa20/salsa"
|
||||||
]
|
]
|
||||||
revision = "8ac0e0d97ce45cd83d1d7243c060cb8461dda5e9"
|
revision = "a49355c7e3f8fe157a85be2f77e6e269a0f89602"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@ -365,7 +354,7 @@
|
|||||||
"netutil",
|
"netutil",
|
||||||
"trace"
|
"trace"
|
||||||
]
|
]
|
||||||
revision = "db08ff08e8622530d9ed3a0e8ac279f6d4c02196"
|
revision = "4cb1c02c05b0e749b0365f61ae859a8e0cfceed9"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@ -374,7 +363,7 @@
|
|||||||
"cpu",
|
"cpu",
|
||||||
"unix"
|
"unix"
|
||||||
]
|
]
|
||||||
revision = "a9e25c09b96b8870693763211309e213c6ef299d"
|
revision = "7138fd3d9dc8335c567ca206f4333fb75eb05d56"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "golang.org/x/text"
|
name = "golang.org/x/text"
|
||||||
@ -435,6 +424,6 @@
|
|||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "d17038089dd6383ff5028229d4026bb92f5c7adc7e9c1cd52584237e2e5fd431"
|
inputs-digest = "c25289282b94abc7f0c390e592e5e1636b7f26cb4773863ac39cde7fdc7b5bdf"
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
[[override]]
|
[[override]]
|
||||||
name = "github.com/tendermint/tmlibs"
|
name = "github.com/tendermint/tmlibs"
|
||||||
version = "~0.8.4"
|
version = "~0.9.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "google.golang.org/grpc"
|
name = "google.golang.org/grpc"
|
||||||
|
@ -153,14 +153,14 @@ func TestBlockStoreSaveLoadBlock(t *testing.T) {
|
|||||||
parts: validPartSet,
|
parts: validPartSet,
|
||||||
seenCommit: seenCommit1,
|
seenCommit: seenCommit1,
|
||||||
corruptCommitInDB: true, // Corrupt the DB's commit entry
|
corruptCommitInDB: true, // Corrupt the DB's commit entry
|
||||||
wantPanic: "Error reading block commit",
|
wantPanic: "unmarshal to types.Commit failed",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
block: newBlock(&header1, commitAtH10),
|
block: newBlock(&header1, commitAtH10),
|
||||||
parts: validPartSet,
|
parts: validPartSet,
|
||||||
seenCommit: seenCommit1,
|
seenCommit: seenCommit1,
|
||||||
wantPanic: "Error reading block",
|
wantPanic: "unmarshal to types.BlockMeta failed",
|
||||||
corruptBlockInDB: true, // Corrupt the DB's block entry
|
corruptBlockInDB: true, // Corrupt the DB's block entry
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ func TestBlockStoreSaveLoadBlock(t *testing.T) {
|
|||||||
seenCommit: seenCommit1,
|
seenCommit: seenCommit1,
|
||||||
|
|
||||||
corruptSeenCommitInDB: true,
|
corruptSeenCommitInDB: true,
|
||||||
wantPanic: "Error reading block seen commit",
|
wantPanic: "unmarshal to types.Commit failed",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -287,7 +287,7 @@ func TestLoadBlockPart(t *testing.T) {
|
|||||||
db.Set(calcBlockPartKey(height, index), []byte("Tendermint"))
|
db.Set(calcBlockPartKey(height, index), []byte("Tendermint"))
|
||||||
res, _, panicErr = doFn(loadPart)
|
res, _, panicErr = doFn(loadPart)
|
||||||
require.NotNil(t, panicErr, "expecting a non-nil panic")
|
require.NotNil(t, panicErr, "expecting a non-nil panic")
|
||||||
require.Contains(t, panicErr.Error(), "Error reading block part")
|
require.Contains(t, panicErr.Error(), "unmarshal to types.Part failed")
|
||||||
|
|
||||||
// 3. A good block serialized and saved to the DB should be retrievable
|
// 3. A good block serialized and saved to the DB should be retrievable
|
||||||
db.Set(calcBlockPartKey(height, index), cdc.MustMarshalBinaryBare(part1))
|
db.Set(calcBlockPartKey(height, index), cdc.MustMarshalBinaryBare(part1))
|
||||||
@ -316,7 +316,7 @@ func TestLoadBlockMeta(t *testing.T) {
|
|||||||
db.Set(calcBlockMetaKey(height), []byte("Tendermint-Meta"))
|
db.Set(calcBlockMetaKey(height), []byte("Tendermint-Meta"))
|
||||||
res, _, panicErr = doFn(loadMeta)
|
res, _, panicErr = doFn(loadMeta)
|
||||||
require.NotNil(t, panicErr, "expecting a non-nil panic")
|
require.NotNil(t, panicErr, "expecting a non-nil panic")
|
||||||
require.Contains(t, panicErr.Error(), "Error reading block meta")
|
require.Contains(t, panicErr.Error(), "unmarshal to types.BlockMeta")
|
||||||
|
|
||||||
// 3. A good blockMeta serialized and saved to the DB should be retrievable
|
// 3. A good blockMeta serialized and saved to the DB should be retrievable
|
||||||
meta := &types.BlockMeta{}
|
meta := &types.BlockMeta{}
|
||||||
|
@ -119,7 +119,7 @@ func TestSocketPVAcceptDeadline(t *testing.T) {
|
|||||||
|
|
||||||
SocketPVAcceptDeadline(time.Millisecond)(sc)
|
SocketPVAcceptDeadline(time.Millisecond)(sc)
|
||||||
|
|
||||||
assert.Equal(t, sc.Start().(cmn.Error).Cause(), ErrConnWaitTimeout)
|
assert.Equal(t, sc.Start().(cmn.Error).Data(), ErrConnWaitTimeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSocketPVDeadline(t *testing.T) {
|
func TestSocketPVDeadline(t *testing.T) {
|
||||||
@ -165,7 +165,7 @@ func TestSocketPVDeadline(t *testing.T) {
|
|||||||
time.Sleep(20 * time.Microsecond)
|
time.Sleep(20 * time.Microsecond)
|
||||||
|
|
||||||
_, err := sc.getPubKey()
|
_, err := sc.getPubKey()
|
||||||
assert.Equal(t, err.(cmn.Error).Cause(), ErrConnTimeout)
|
assert.Equal(t, err.(cmn.Error).Data(), ErrConnTimeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSocketPVWait(t *testing.T) {
|
func TestSocketPVWait(t *testing.T) {
|
||||||
@ -178,7 +178,7 @@ func TestSocketPVWait(t *testing.T) {
|
|||||||
|
|
||||||
SocketPVConnWait(time.Millisecond)(sc)
|
SocketPVConnWait(time.Millisecond)(sc)
|
||||||
|
|
||||||
assert.Equal(t, sc.Start().(cmn.Error).Cause(), ErrConnWaitTimeout)
|
assert.Equal(t, sc.Start().(cmn.Error).Data(), ErrConnWaitTimeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRemoteSignerRetry(t *testing.T) {
|
func TestRemoteSignerRetry(t *testing.T) {
|
||||||
@ -221,7 +221,7 @@ func TestRemoteSignerRetry(t *testing.T) {
|
|||||||
RemoteSignerConnDeadline(time.Millisecond)(rs)
|
RemoteSignerConnDeadline(time.Millisecond)(rs)
|
||||||
RemoteSignerConnRetries(retries)(rs)
|
RemoteSignerConnRetries(retries)(rs)
|
||||||
|
|
||||||
assert.Equal(t, rs.Start().(cmn.Error).Cause(), ErrDialRetryMax)
|
assert.Equal(t, rs.Start().(cmn.Error).Data(), ErrDialRetryMax)
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case attempts := <-attemptc:
|
case attempts := <-attemptc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user