Skip to content

Commit

Permalink
Merge pull request #176 from MinterTeam/dev
Browse files Browse the repository at this point in the history
v0.8.1
  • Loading branch information
danil-lashin authored Dec 10, 2018
2 parents 2f1f12a + d76a687 commit 07e6401
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 0.8.1
*Dec 10th, 2018*

IMPROVEMENT

- [core] Speed-up tx processing

BUG FIXES

- [config] Change default seed node

## 0.8.0
*Dec 3rd, 2018*

Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func init() {
func DefaultConfig() *Config {
cfg := defaultConfig()

cfg.P2P.Seeds = "d20522aa7ba4af8139749c5e724063c4ba18c58b@minter-node-2.testnet.minter.network:26656"
cfg.P2P.Seeds = "647e32df3b9c54809b5aca2877d9ba60900bc2d9@minter-node-1.testnet.minter.network:26656"

cfg.TxIndex = &tmConfig.TxIndexConfig{
Indexer: "kv",
Expand Down
17 changes: 14 additions & 3 deletions core/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type Transaction struct {
decodedData Data
sig *Signature
multisig *SignatureMulti
sender *types.Address
}

type Signature struct {
Expand Down Expand Up @@ -190,14 +191,24 @@ func (tx *Transaction) SetSignature(sig []byte) {
}

func (tx *Transaction) Sender() (types.Address, error) {
if tx.sender != nil {
return *tx.sender, nil
}

switch tx.SignatureType {
case SigTypeSingle:
return RecoverPlain(tx.Hash(), tx.sig.R, tx.sig.S, tx.sig.V)
sender, err := RecoverPlain(tx.Hash(), tx.sig.R, tx.sig.S, tx.sig.V)
if err != nil {
return types.Address{}, err
}

tx.sender = &sender
return sender, nil
case SigTypeMulti:
return tx.multisig.Multisig, nil
default:
return types.Address{}, errors.New("unknown signature type")
}

return types.Address{}, errors.New("unknown signature type")
}

func (tx *Transaction) Hash() types.Hash {
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.8.0
image: minterteam/minter:0.8.1
volumes:
- ~/.minter:/minter
ports:
Expand Down
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Returns full list of candidates.

.. code-block:: bash
curl -s 'localhost:8841/events?height={height}'
curl -s 'localhost:8841/candidates?height={height}'
.. code-block:: json
Expand Down
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package version
const (
Maj = "0"
Min = "8"
Fix = "0"
Fix = "1"
)

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

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

0 comments on commit 07e6401

Please sign in to comment.