Skip to content

Commit

Permalink
Merge pull request #193 from MinterTeam/dev
Browse files Browse the repository at this point in the history
v0.9.3
  • Loading branch information
danil-lashin authored Dec 25, 2018
2 parents dce4d22 + f7a5934 commit 700be43
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.9.4
*Dec 25th, 2018*

BUG FIXES

- [core] Fix sell all coin tx

## 0.9.2
*Dec 25th, 2018*

Expand Down
9 changes: 8 additions & 1 deletion core/transaction/sell_all_coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (data SellAllCoinData) TotalSpend(tx *Transaction, context *state.StateDB)
}
}

value.Set(ret)
value = big.NewInt(0).Set(ret)
value.Sub(ret, commissionInBaseCoin)

conversions = append(conversions, Conversion{
Expand Down Expand Up @@ -152,6 +152,13 @@ func (data SellAllCoinData) Gas() int64 {
func (data SellAllCoinData) Run(tx *Transaction, context *state.StateDB, isCheck bool, rewardPool *big.Int, currentBlock int64) Response {
sender, _ := tx.Sender()

// TODO: delete
if isCheck && currentBlock < 14000 {
return Response{
Code: 999,
Log: "Temporary forbidden tx"}
}

response := data.BasicCheck(tx, context)
if response != nil {
return *response
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.4"
services:
minter:
image: minterteam/minter:0.9.2
image: minterteam/minter:0.9.3
volumes:
- ~/.minter:/minter
ports:
Expand Down
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ package version
const (
Maj = "0"
Min = "9"
Fix = "2"
Fix = "3"

AppVer = 1
)

var (
// Must be a string because scripts like dist.sh read this file.
Version = "0.9.2"
Version = "0.9.3"

// GitCommit is the current HEAD set using ldflags.
GitCommit string
Expand Down

0 comments on commit 700be43

Please sign in to comment.