Skip to content

Commit

Permalink
Merge pull request #587 from klim0v/v2.0
Browse files Browse the repository at this point in the history
frozen
  • Loading branch information
Klimov Sergey authored Mar 27, 2021
2 parents bd77d2b + aba1719 commit ae7805b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Changelog

## Unreleased [v2.0.0](https://github.com/MinterTeam/minter-go-node/tree/v2.0)

[Full Changelog](https://github.com/MinterTeam/minter-go-node/compare/v1.2.1...v2.0)

### Added

- exchange transactions via liquidity pools
- voting for network commissions with linking the rate to any coin
- smooth network update without stopping
- creation of unreserved coins
- allowed to change the validator's commission
- the period for recalculating stakes and accruing rewards increased from 120 blocks to 720
- validator penalty for skipped network blocks replaced with 24-hour ban

### Changed

- API v2 [changelog](https://klim0v.github.io/minter-node-api-v2-diff/)
- continuation of block numbering from the previous version of the network

### Removed

- Delete API v1
- Delete transactions `PriceVote`

### Fixed

### Security

- Update Tendermint to 0.34.8
- Update IAVL to v0.15.3

## 1.2.1

- [core] Add tags old_coin_symbol and old_coin_id to RecreateCoin tx
Expand Down
5 changes: 4 additions & 1 deletion api/v2/service/frozen.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ func (s *Service) Frozen(ctx context.Context, req *pb.FrozenRequest) (*pb.Frozen
return nil, status.Error(codes.InvalidArgument, "invalid address")
}

cState := s.blockchain.CurrentState()
cState, err := s.blockchain.GetStateForHeight(req.Height)
if err != nil {
return nil, status.Error(codes.NotFound, err.Error())
}

var reqCoin *coins.Model

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/MinterTeam/minter-go-node
go 1.15

require (
github.com/MinterTeam/node-grpc-gateway v1.2.2-0.20210326235021-4107582ce100
github.com/MinterTeam/node-grpc-gateway v1.2.2-0.20210327013510-012fe2754dfc
github.com/btcsuite/btcd v0.21.0-beta
github.com/c-bata/go-prompt v0.2.3
github.com/cosmos/iavl v0.15.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:
github.com/DataDog/zstd v1.4.1 h1:3oxKN3wbHibqx897utPC2LTQU4J+IHWWJO+glkAkpFM=
github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/MinterTeam/node-grpc-gateway v1.2.2-0.20210326235021-4107582ce100 h1:Mo4XwNMHI83OQOMIYAZ7Ut/dtekrwbTt/6UYadRzgrk=
github.com/MinterTeam/node-grpc-gateway v1.2.2-0.20210326235021-4107582ce100/go.mod h1:d4Rw0MtsZTrFNLJJWr/jcurTYcqRVITzWuGDGo7aHxM=
github.com/MinterTeam/node-grpc-gateway v1.2.2-0.20210327013510-012fe2754dfc h1:8qgOpS6Ic5IbNa/BvwgAD2fiBzTYrwLmCPtheM3yYRc=
github.com/MinterTeam/node-grpc-gateway v1.2.2-0.20210327013510-012fe2754dfc/go.mod h1:d4Rw0MtsZTrFNLJJWr/jcurTYcqRVITzWuGDGo7aHxM=
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
Expand Down

0 comments on commit ae7805b

Please sign in to comment.