Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

feat: apply sig block height of sdk #16

Merged
merged 2 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes

### Breaking Changes
* (sdk) (auth) [\#16](https://github.com/line/lfb/pull/16) Introduce sig block height for the new replay protection

## [gaia v4.0.4] - 2021-03-15
Initial lfb is based on the tendermint v0.34.9+, cosmos-sdk v0.42.0+, gaia v4.0.4
Expand Down
2 changes: 1 addition & 1 deletion cli_test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ func TestLFBIncrementSequenceDecorator(t *testing.T) {
defer os.Remove(unsignedTxFile.Name())

// Test sign
out, err = f.TxSign(keyFoo, unsignedTxFile.Name(), "--offline", "--account-number", strconv.Itoa(int(fooAcc.AccountNumber)), "--sequence", strconv.Itoa(int(fooAcc.Sequence)+idx))
out, err = f.TxSign(keyFoo, unsignedTxFile.Name(), "--offline", "--sig-block-height", strconv.Itoa(1), "--sequence", strconv.Itoa(int(fooAcc.Sequence)+idx))
require.NoError(t, err)

// Write the output to disk
Expand Down
2 changes: 1 addition & 1 deletion cmd/lfb/cmd/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa
var genAccount authtypes.GenesisAccount

balances := banktypes.Balance{Address: addr.String(), Coins: coins.Sort()}
baseAccount := authtypes.NewBaseAccount(addr, nil, 0, 0)
baseAccount := authtypes.NewBaseAccount(addr, nil, 0)

if !vestingAmt.IsZero() {
baseVestingAccount := authvesting.NewBaseVestingAccount(baseAccount, vestingAmt.Sort(), vestingEnd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/lfb/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func InitTestnet(
}

genBalances = append(genBalances, banktypes.Balance{Address: addr.String(), Coins: coins.Sort()})
genAccounts = append(genAccounts, authtypes.NewBaseAccount(addr, nil, 0, 0))
genAccounts = append(genAccounts, authtypes.NewBaseAccount(addr, nil, 0))

valTokens := sdk.TokensFromConsensusPower(100)
createValMsg, err := stakingtypes.NewMsgCreateValidator(
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ require (
github.com/dgraph-io/ristretto v0.0.3 // indirect
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/gorilla/mux v1.8.0
github.com/line/lfb-sdk v1.0.0-init.1.0.20210624050312-9bcea92166c3
github.com/line/lfb-sdk v1.0.0-init.1.0.20210716030316-af78aa4c1c22
github.com/line/ostracon v0.34.9-0.20210610071151-a52812ac9add
github.com/line/tm-db/v2 v2.0.0-init.1.0.20210413083915-5bb60e117524
github.com/pkg/errors v0.9.1
github.com/rakyll/statik v0.1.7
github.com/spf13/cast v1.3.1
github.com/spf13/cobra v1.1.3
Expand Down
Loading