Skip to content

Commit

Permalink
Reduce max number of inputs/outputs in transfer txn
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Jun 22, 2019
1 parent 33a6b4a commit 005a6a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion consensus/moca/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (consensus *Consensus) startRequestingProposal() {
func (consensus *Consensus) receiveProposal(block *ledger.Block) error {
blockHash := block.Header.Hash()

log.Debugf("Receive block proposal %s", blockHash.ToHexString())
log.Infof("Receive block proposal %s", blockHash.ToHexString())

consensus.proposalLock.RLock()
defer consensus.proposalLock.RUnlock()
Expand Down
3 changes: 1 addition & 2 deletions core/transaction/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io"
"math"

"github.com/nknorg/nkn/common"
"github.com/nknorg/nkn/common/serialization"
Expand All @@ -21,7 +20,7 @@ type TxnInput struct {
}

// MaxRefIndex is the max of TxnInput.ReferTxOutputIndex
const MaxRefIndex = int(math.MaxUint16)
const MaxRefIndex = 667

func (input *TxnInput) Serialize(w io.Writer) error {
_, err := input.ReferTxID.Serialize(w)
Expand Down
6 changes: 3 additions & 3 deletions net/node/localnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
)

const (
protocolVersion = 1
minCompatibleProtocolVersion = 0
maxCompatibleProtocolVersion = 10
protocolVersion = 11
minCompatibleProtocolVersion = 11
maxCompatibleProtocolVersion = 20
)

type LocalNode struct {
Expand Down
2 changes: 1 addition & 1 deletion nknd.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
)

const (
TestNetVersionNum = 13
TestNetVersionNum = 14
)

var (
Expand Down

0 comments on commit 005a6a4

Please sign in to comment.