Skip to content

Commit

Permalink
Merge pull request #194 from MinterTeam/dev
Browse files Browse the repository at this point in the history
v0.9.4
  • Loading branch information
danil-lashin authored Dec 26, 2018
2 parents 700be43 + 57af2b5 commit 47332f2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Changelog

## 0.9.4
*Dec 26th, 2018*

IMPROVEMENT

- [mempool] Disable tx rechecking

BUG FIXES

- [core] Fix issue with bag tx occupying mempool

## 0.9.3
*Dec 25th, 2018*

BUG FIXES
Expand Down
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func GetConfig() *Config {
cfg.RPC.GRPCListenAddress = ""
}

cfg.Mempool.Recheck = false

cfg.SetRoot(utils.GetMinterHome())
EnsureRoot(utils.GetMinterHome())

Expand Down
1 change: 0 additions & 1 deletion config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ private_peer_ids = "{{ .P2P.PrivatePeerIDs }}"
##### mempool configuration options #####
[mempool]
recheck = {{ .Mempool.Recheck }}
broadcast = {{ .Mempool.Broadcast }}
wal_dir = "{{ js .Mempool.WalPath }}"
Expand Down
8 changes: 7 additions & 1 deletion core/transaction/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,11 @@ func RunTx(context *state.StateDB, isCheck bool, rawTx []byte, rewardPool *big.I
Log: fmt.Sprintf("Unexpected nonce. Expected: %d, got %d.", expectedNonce, tx.Nonce)}
}

return tx.decodedData.Run(tx, context, isCheck, rewardPool, currentBlock)
response := tx.decodedData.Run(tx, context, isCheck, rewardPool, currentBlock)

if response.Code != code.TxFromSenderAlreadyInMempool && response.Code != code.OK {
delete(currentMempool, sender)
}

return response
}
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.3
image: minterteam/minter:0.9.4
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 = "3"
Fix = "4"

AppVer = 1
)

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

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

0 comments on commit 47332f2

Please sign in to comment.