Merge branch 'develop' into bucky/gaiadebug-bech32
This commit is contained in:
commit
2f3e1a3fde
|
@ -67,8 +67,7 @@ jobs:
|
||||||
name: Lint source
|
name: Lint source
|
||||||
command: |
|
command: |
|
||||||
export PATH="$GOBIN:$PATH"
|
export PATH="$GOBIN:$PATH"
|
||||||
gometalinter.v2 --disable-all --enable='golint' --enable='misspell' --vendor ./...
|
make test_lint
|
||||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" | xargs gofmt -d -s
|
|
||||||
test_unit:
|
test_unit:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
|
|
|
@ -17,7 +17,7 @@ BREAKING CHANGES
|
||||||
* [stake] remove Tick and add EndBlocker
|
* [stake] remove Tick and add EndBlocker
|
||||||
* [stake] introduce concept of unbonding for delegations and validators
|
* [stake] introduce concept of unbonding for delegations and validators
|
||||||
* `gaiacli stake unbond` replaced with `gaiacli stake begin-unbonding`
|
* `gaiacli stake unbond` replaced with `gaiacli stake begin-unbonding`
|
||||||
* introduced:
|
* introduced:
|
||||||
* `gaiacli stake complete-unbonding`
|
* `gaiacli stake complete-unbonding`
|
||||||
* `gaiacli stake begin-redelegation`
|
* `gaiacli stake begin-redelegation`
|
||||||
* `gaiacli stake complete-redelegation`
|
* `gaiacli stake complete-redelegation`
|
||||||
|
@ -34,14 +34,17 @@ FEATURES
|
||||||
* Run with `cd x/bank && go test --bench=.`
|
* Run with `cd x/bank && go test --bench=.`
|
||||||
* [tools] make get_tools installs tendermint's linter, and gometalinter
|
* [tools] make get_tools installs tendermint's linter, and gometalinter
|
||||||
* [tools] Switch gometalinter to the stable version
|
* [tools] Switch gometalinter to the stable version
|
||||||
* [tools] Add checking for misspellings and for incorrectly formatted files in circle CI
|
* [tools] Add the following linters
|
||||||
|
* misspell
|
||||||
|
* gofmt
|
||||||
|
* go vet -composites=false
|
||||||
* [server] Default config now creates a profiler at port 6060, and increase p2p send/recv rates
|
* [server] Default config now creates a profiler at port 6060, and increase p2p send/recv rates
|
||||||
* [tests] Add WaitForNextNBlocksTM helper method
|
* [tests] Add WaitForNextNBlocksTM helper method
|
||||||
* [types] Switches internal representation of Int/Uint/Rat to use pointers
|
* [types] Switches internal representation of Int/Uint/Rat to use pointers
|
||||||
* [gaiad] unsafe_reset_all now resets addrbook.json
|
* [gaiad] unsafe_reset_all now resets addrbook.json
|
||||||
* [democoin] add x/oracle, x/assoc
|
* [democoin] add x/oracle, x/assoc
|
||||||
|
|
||||||
FIXES
|
FIXES
|
||||||
* [gaia] Added self delegation for validators in the genesis creation
|
* [gaia] Added self delegation for validators in the genesis creation
|
||||||
* [lcd] tests now don't depend on raw json text
|
* [lcd] tests now don't depend on raw json text
|
||||||
* [stake] error strings lower case
|
* [stake] error strings lower case
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -108,7 +108,8 @@ test_cover:
|
||||||
@bash tests/test_cover.sh
|
@bash tests/test_cover.sh
|
||||||
|
|
||||||
test_lint:
|
test_lint:
|
||||||
gometalinter.v2 --disable-all --enable='golint' --enable='misspell' --vendor ./...
|
gometalinter.v2 --disable-all --enable='golint' --enable='misspell' --linter='vet:go vet -composites=false:PATH:LINE:MESSAGE' --enable='vet' --vendor ./...
|
||||||
|
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" | xargs gofmt -d -s
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
@go test -bench=. $(PACKAGES_NOCLITEST)
|
@go test -bench=. $(PACKAGES_NOCLITEST)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
// Tx Broadcast Body
|
// Tx Broadcast Body
|
||||||
type BroadcastTxBody struct {
|
type BroadcastTxBody struct {
|
||||||
TxBytes string `json="tx"`
|
TxBytes string `json:"tx"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// BroadcastTx REST Handler
|
// BroadcastTx REST Handler
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
// REST request body
|
// REST request body
|
||||||
// TODO does this need to be exposed?
|
// TODO does this need to be exposed?
|
||||||
type SignTxBody struct {
|
type SignTxBody struct {
|
||||||
Name string `json="name"`
|
Name string `json:"name"`
|
||||||
Password string `json="password"`
|
Password string `json:"password"`
|
||||||
TxBytes string `json="tx"`
|
TxBytes string `json:"tx"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// sign transaction REST Handler
|
// sign transaction REST Handler
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
|
||||||
"fmt"
|
|
||||||
"testing"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
@ -83,7 +83,7 @@ func TestGenesis(t *testing.T) {
|
||||||
|
|
||||||
// InitChain with default stake data. Initializes deliverState and checkState context
|
// InitChain with default stake data. Initializes deliverState and checkState context
|
||||||
bapp.InitChain(abci.RequestInitChain{AppStateBytes: []byte(fmt.Sprintf("{\"stake\": %s}", string(genState)))})
|
bapp.InitChain(abci.RequestInitChain{AppStateBytes: []byte(fmt.Sprintf("{\"stake\": %s}", string(genState)))})
|
||||||
|
|
||||||
ctx = bapp.BaseApp.NewContext(true, abci.Header{})
|
ctx = bapp.BaseApp.NewContext(true, abci.Header{})
|
||||||
res1 = bapp.accountMapper.GetAccount(ctx, baseAcc.Address)
|
res1 = bapp.accountMapper.GetAccount(ctx, baseAcc.Address)
|
||||||
assert.Equal(t, acc, res1)
|
assert.Equal(t, acc, res1)
|
||||||
|
|
|
@ -106,9 +106,9 @@ func TestOracle(t *testing.T) {
|
||||||
addr3 := []byte("addr3")
|
addr3 := []byte("addr3")
|
||||||
addr4 := []byte("addr4")
|
addr4 := []byte("addr4")
|
||||||
valset := &mock.ValidatorSet{[]mock.Validator{
|
valset := &mock.ValidatorSet{[]mock.Validator{
|
||||||
mock.Validator{addr1, sdk.NewRat(7)},
|
{addr1, sdk.NewRat(7)},
|
||||||
mock.Validator{addr2, sdk.NewRat(7)},
|
{addr2, sdk.NewRat(7)},
|
||||||
mock.Validator{addr3, sdk.NewRat(1)},
|
{addr3, sdk.NewRat(1)},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
key := sdk.NewKVStoreKey("testkey")
|
key := sdk.NewKVStoreKey("testkey")
|
||||||
|
|
|
@ -101,8 +101,8 @@ type Redelegation struct {
|
||||||
ValidatorDstAddr sdk.Address `json:"validator_dst_addr"` // validator redelegation destination owner addr
|
ValidatorDstAddr sdk.Address `json:"validator_dst_addr"` // validator redelegation destination owner addr
|
||||||
CreationHeight int64 `json:"creation_height"` // height which the redelegation took place
|
CreationHeight int64 `json:"creation_height"` // height which the redelegation took place
|
||||||
MinTime int64 `json:"min_time"` // unix time for redelegation completion
|
MinTime int64 `json:"min_time"` // unix time for redelegation completion
|
||||||
SharesSrc sdk.Rat `json:"shares` // amount of source shares redelegating
|
SharesSrc sdk.Rat `json:"shares_src"` // amount of source shares redelegating
|
||||||
SharesDst sdk.Rat `json:"shares` // amount of destination shares redelegating
|
SharesDst sdk.Rat `json:"shares_dst"` // amount of destination shares redelegating
|
||||||
}
|
}
|
||||||
|
|
||||||
// nolint
|
// nolint
|
||||||
|
|
Loading…
Reference in New Issue