diff --git a/CHANGELOG.md b/CHANGELOG.md index 336ef4942..8906aecca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/api/v2/service/frozen.go b/api/v2/service/frozen.go index e872d8238..2511d972f 100644 --- a/api/v2/service/frozen.go +++ b/api/v2/service/frozen.go @@ -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 diff --git a/go.mod b/go.mod index f4dc3748d..d9ff3862a 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 385b79632..be0f6fc4f 100644 --- a/go.sum +++ b/go.sum @@ -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=