mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-15 14:21:22 +00:00
Package import path change
This commit is contained in:
10
Makefile
10
Makefile
@ -3,19 +3,19 @@
|
|||||||
all: build
|
all: build
|
||||||
|
|
||||||
build: get_deps
|
build: get_deps
|
||||||
go build -o tendermint github.com/tendermint/tendermint2/cmd
|
go build -o tendermint github.com/tendermint/tendermint/cmd
|
||||||
|
|
||||||
build_race: get_deps
|
build_race: get_deps
|
||||||
go build -race -o tendermint github.com/tendermint/tendermint2/cmd
|
go build -race -o tendermint github.com/tendermint/tendermint/cmd
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
go test github.com/tendermint/tendermint2/...
|
go test github.com/tendermint/tendermint/...
|
||||||
|
|
||||||
list_deps:
|
list_deps:
|
||||||
go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint2/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
|
go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
|
||||||
|
|
||||||
get_deps:
|
get_deps:
|
||||||
go get github.com/tendermint/tendermint2/...
|
go get github.com/tendermint/tendermint/...
|
||||||
|
|
||||||
tendermint_root/priv_validator.json: tendermint_root/priv_validator.json.orig
|
tendermint_root/priv_validator.json: tendermint_root/priv_validator.json.orig
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Signable is an interface for all signable things.
|
// Signable is an interface for all signable things.
|
||||||
|
@ -2,7 +2,7 @@ package account
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/ed25519"
|
"github.com/tendermint/ed25519"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PrivAccount struct {
|
type PrivAccount struct {
|
||||||
|
@ -2,8 +2,8 @@ package account
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/ed25519"
|
"github.com/tendermint/ed25519"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PrivKey is part of PrivAccount and state.PrivValidator.
|
// PrivKey is part of PrivAccount and state.PrivValidator.
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/tendermint/ed25519"
|
"github.com/tendermint/ed25519"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PubKey is part of Account and Validator.
|
// PubKey is part of Account and Validator.
|
||||||
|
@ -3,8 +3,8 @@ package account
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Signature is a part of Txs and consensus Votes.
|
// Signature is a part of Txs and consensus Votes.
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/tendermint/ed25519"
|
"github.com/tendermint/ed25519"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSignAndValidate(t *testing.T) {
|
func TestSignAndValidate(t *testing.T) {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/sfreiberg/gotwilio"
|
"github.com/sfreiberg/gotwilio"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var lastAlertUnix int64 = 0
|
var lastAlertUnix int64 = 0
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Convenience function
|
// Convenience function
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package alert
|
package alert
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "alert")
|
var log = logger.New("module", "alert")
|
||||||
|
@ -2,7 +2,7 @@ package binary
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/log15"
|
"github.com/tendermint/log15"
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "binary")
|
var log = logger.New("module", "binary")
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TypeInfo struct {
|
type TypeInfo struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package blockchain
|
package blockchain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "blockchain")
|
var log = logger.New("module", "blockchain")
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testPeer struct {
|
type testPeer struct {
|
||||||
|
@ -7,11 +7,11 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -6,10 +6,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -3,8 +3,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
)
|
)
|
||||||
|
|
||||||
func gen_account() {
|
func gen_account() {
|
||||||
|
@ -8,12 +8,12 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getString(prompt string) string {
|
func getString(prompt string) string {
|
||||||
|
@ -3,9 +3,9 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
func gen_validator() {
|
func gen_validator() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "main")
|
var log = logger.New("module", "main")
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
"github.com/tendermint/tendermint2/daemon"
|
"github.com/tendermint/tendermint/daemon"
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/p2p/upnp"
|
"github.com/tendermint/tendermint/p2p/upnp"
|
||||||
)
|
)
|
||||||
|
|
||||||
func probe_upnp() {
|
func probe_upnp() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// We can't use github.com/tendermint/tendermint2/logger
|
// We can't use github.com/tendermint/tendermint/logger
|
||||||
// because that would create a dependency cycle.
|
// because that would create a dependency cycle.
|
||||||
"github.com/tendermint/log15"
|
"github.com/tendermint/log15"
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package consensus
|
package consensus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "consensus")
|
var log = logger.New("module", "consensus")
|
||||||
|
@ -3,11 +3,11 @@ package consensus
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Each signature of a POL (proof-of-lock, see whitepaper) is
|
// Each signature of a POL (proof-of-lock, see whitepaper) is
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package consensus
|
package consensus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
|
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -8,13 +8,13 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
bc "github.com/tendermint/tendermint2/blockchain"
|
bc "github.com/tendermint/tendermint/blockchain"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
. "github.com/tendermint/tendermint2/consensus/types"
|
. "github.com/tendermint/tendermint/consensus/types"
|
||||||
"github.com/tendermint/tendermint2/p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -60,15 +60,15 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
bc "github.com/tendermint/tendermint2/blockchain"
|
bc "github.com/tendermint/tendermint/blockchain"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
. "github.com/tendermint/tendermint2/consensus/types"
|
. "github.com/tendermint/tendermint/consensus/types"
|
||||||
mempl "github.com/tendermint/tendermint2/mempool"
|
mempl "github.com/tendermint/tendermint/mempool"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetupRound(t *testing.T) {
|
func TestSetupRound(t *testing.T) {
|
||||||
|
@ -3,10 +3,10 @@ package consensus
|
|||||||
import (
|
import (
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
bc "github.com/tendermint/tendermint2/blockchain"
|
bc "github.com/tendermint/tendermint/blockchain"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
mempl "github.com/tendermint/tendermint2/mempool"
|
mempl "github.com/tendermint/tendermint/mempool"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
func randConsensusState() (*ConsensusState, []*sm.PrivValidator) {
|
func randConsensusState() (*ConsensusState, []*sm.PrivValidator) {
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -6,11 +6,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// VoteSet helps collect signatures from validators at each height+round
|
// VoteSet helps collect signatures from validators at each height+round
|
||||||
|
@ -3,10 +3,10 @@ package consensus
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
. "github.com/tendermint/tendermint2/common/test"
|
. "github.com/tendermint/tendermint/common/test"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -5,16 +5,16 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
|
|
||||||
"github.com/ebuchman/debora"
|
"github.com/ebuchman/debora"
|
||||||
bc "github.com/tendermint/tendermint2/blockchain"
|
bc "github.com/tendermint/tendermint/blockchain"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
"github.com/tendermint/tendermint2/consensus"
|
"github.com/tendermint/tendermint/consensus"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
mempl "github.com/tendermint/tendermint2/mempool"
|
mempl "github.com/tendermint/tendermint/mempool"
|
||||||
"github.com/tendermint/tendermint2/p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint2/rpc"
|
"github.com/tendermint/tendermint/rpc"
|
||||||
"github.com/tendermint/tendermint2/rpc/core"
|
"github.com/tendermint/tendermint/rpc/core"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Node struct {
|
type Node struct {
|
||||||
@ -173,7 +173,7 @@ func (n *Node) MempoolReactor() *mempl.MempoolReactor {
|
|||||||
// debora variables
|
// debora variables
|
||||||
var (
|
var (
|
||||||
AppName = "tendermint"
|
AppName = "tendermint"
|
||||||
SrcPath = "github.com/tendermint/tendermint2/cmd"
|
SrcPath = "github.com/tendermint/tendermint/cmd"
|
||||||
PublicKey = "30820122300d06092a864886f70d01010105000382010f003082010a0282010100dd861e9cd5a3f3fc27d46531aa9d87f5b63f6358fa00397482c4ab93abf4ab2e3ed75380fc714d52b5e80afc184f21d5732f2d6dacc23f0e802e585ee005347c2af0ad992ee5c11b2a96f72bcae78bef314ba4448b33c3a1df7a4d6e6a808d21dfeb67ef974c0357ba54649dbcd92ec2a8d3a510da747e70cb859a7f9b15a6eceb2179c225afd3f8fb15be38988f9b82622d855f343af5830ca30a5beff3905b618f6cc39142a60ff5840595265a1f7b9fbd504760667a1b2508097c1831fd13f54c794a08468d65db9e27aff0a889665ebd7de4a6e9a6c09b3811b6cda623be48e1214ba0f9b378441e2a02b3891bc8ec1ae7081988e15c2f53fa6512784b390203010001"
|
PublicKey = "30820122300d06092a864886f70d01010105000382010f003082010a0282010100dd861e9cd5a3f3fc27d46531aa9d87f5b63f6358fa00397482c4ab93abf4ab2e3ed75380fc714d52b5e80afc184f21d5732f2d6dacc23f0e802e585ee005347c2af0ad992ee5c11b2a96f72bcae78bef314ba4448b33c3a1df7a4d6e6a808d21dfeb67ef974c0357ba54649dbcd92ec2a8d3a510da747e70cb859a7f9b15a6eceb2179c225afd3f8fb15be38988f9b82622d855f343af5830ca30a5beff3905b618f6cc39142a60ff5840595265a1f7b9fbd504760667a1b2508097c1831fd13f54c794a08468d65db9e27aff0a889665ebd7de4a6e9a6c09b3811b6cda623be48e1214ba0f9b378441e2a02b3891bc8ec1ae7081988e15c2f53fa6512784b390203010001"
|
||||||
|
|
||||||
DeboraCallPort = 56565
|
DeboraCallPort = 56565
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package daemon
|
package daemon
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "daemon")
|
var log = logger.New("module", "daemon")
|
||||||
|
4
db/db.go
4
db/db.go
@ -3,8 +3,8 @@ package db
|
|||||||
import (
|
import (
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DB interface {
|
type DB interface {
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/tendermint/log15"
|
"github.com/tendermint/log15"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var rootHandler log15.Handler
|
var rootHandler log15.Handler
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package mempool
|
package mempool
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "mempool")
|
var log = logger.New("module", "mempool")
|
||||||
|
@ -11,9 +11,9 @@ package mempool
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Mempool struct {
|
type Mempool struct {
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"github.com/tendermint/tendermint2/p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Node
|
// Node
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/db"
|
"github.com/tendermint/tendermint/db"
|
||||||
|
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"container/list"
|
"container/list"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
)
|
)
|
||||||
|
|
||||||
func HashFromTwoHashes(left []byte, right []byte) []byte {
|
func HashFromTwoHashes(left []byte, right []byte) []byte {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package merkle
|
package merkle
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
|
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
|
|
||||||
flow "code.google.com/p/mxk/go1/flowcontrol"
|
flow "code.google.com/p/mxk/go1/flowcontrol"
|
||||||
"github.com/tendermint/log15"
|
"github.com/tendermint/log15"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/p2p/upnp"
|
"github.com/tendermint/tendermint/p2p/upnp"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Listener interface {
|
type Listener interface {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package p2p
|
package p2p
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "p2p")
|
var log = logger.New("module", "p2p")
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Peer struct {
|
type Peer struct {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Returns an empty dummy peer
|
// Returns an empty dummy peer
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ebuchman/debora"
|
"github.com/ebuchman/debora"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var pexErrInvalidMessage = errors.New("Invalid PEX message")
|
var pexErrInvalidMessage = errors.New("Invalid PEX message")
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Reactor interface {
|
type Reactor interface {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PeerMessage struct {
|
type PeerMessage struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package upnp
|
package upnp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "upnp")
|
var log = logger.New("module", "upnp")
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UPNPCapabilities struct {
|
type UPNPCapabilities struct {
|
||||||
|
@ -3,7 +3,7 @@ package rpc
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
@ -164,7 +164,7 @@ func argsToURLValues(argNames []string, args ...interface{}) (url.Values, error)
|
|||||||
// import statements we will need for the templates
|
// import statements we will need for the templates
|
||||||
|
|
||||||
/*rpc-gen:imports:
|
/*rpc-gen:imports:
|
||||||
github.com/tendermint/tendermint2/binary
|
github.com/tendermint/tendermint/binary
|
||||||
net/http
|
net/http
|
||||||
io/ioutil
|
io/ioutil
|
||||||
fmt
|
fmt
|
||||||
|
@ -2,10 +2,10 @@ package rpc
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"github.com/tendermint/tendermint2/rpc/core"
|
"github.com/tendermint/tendermint/rpc/core"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
@ -2,8 +2,8 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenPrivAccount() (*ResponseGenPrivAccount, error) {
|
func GenPrivAccount() (*ResponseGenPrivAccount, error) {
|
||||||
|
@ -2,8 +2,8 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -2,9 +2,9 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/state"
|
"github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
bc "github.com/tendermint/tendermint2/blockchain"
|
bc "github.com/tendermint/tendermint/blockchain"
|
||||||
"github.com/tendermint/tendermint2/consensus"
|
"github.com/tendermint/tendermint/consensus"
|
||||||
mempl "github.com/tendermint/tendermint2/mempool"
|
mempl "github.com/tendermint/tendermint/mempool"
|
||||||
"github.com/tendermint/tendermint2/p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint2/state"
|
"github.com/tendermint/tendermint/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
var blockStore *bc.BlockStore
|
var blockStore *bc.BlockStore
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ResponseGenPrivAccount struct {
|
type ResponseGenPrivAccount struct {
|
||||||
|
@ -2,11 +2,11 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/state"
|
"github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"github.com/tendermint/tendermint2/vm"
|
"github.com/tendermint/tendermint/vm"
|
||||||
)
|
)
|
||||||
|
|
||||||
func toVMAccount(acc *account.Account) *vm.Account {
|
func toVMAccount(acc *account.Account) *vm.Account {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
sm "github.com/tendermint/tendermint2/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -7,8 +7,8 @@ TODO: support Call && GetStorage.
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"github.com/tendermint/tendermint2/rpc/core"
|
"github.com/tendermint/tendermint/rpc/core"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -8,10 +8,10 @@ import (
|
|||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/alert"
|
"github.com/tendermint/tendermint/alert"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func StartHTTPServer() {
|
func StartHTTPServer() {
|
||||||
|
@ -4,12 +4,12 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/merkle"
|
"github.com/tendermint/tendermint/merkle"
|
||||||
"github.com/tendermint/tendermint2/rpc/core"
|
"github.com/tendermint/tendermint/rpc/core"
|
||||||
"github.com/tendermint/tendermint2/state"
|
"github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -5,12 +5,12 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
"github.com/tendermint/tendermint2/rpc"
|
"github.com/tendermint/tendermint/rpc"
|
||||||
"github.com/tendermint/tendermint2/rpc/core"
|
"github.com/tendermint/tendermint/rpc/core"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
@ -3,16 +3,16 @@ package rpc
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
"github.com/tendermint/tendermint2/daemon"
|
"github.com/tendermint/tendermint/daemon"
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
"github.com/tendermint/tendermint2/p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint2/rpc"
|
"github.com/tendermint/tendermint/rpc"
|
||||||
"github.com/tendermint/tendermint2/rpc/core"
|
"github.com/tendermint/tendermint/rpc/core"
|
||||||
"github.com/tendermint/tendermint2/state"
|
"github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
@ -4,11 +4,11 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
ac "github.com/tendermint/tendermint2/account"
|
ac "github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
"github.com/tendermint/tendermint2/merkle"
|
"github.com/tendermint/tendermint/merkle"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeStorage(db dbm.DB, root []byte) merkle.Tree {
|
func makeStorage(db dbm.DB, root []byte) merkle.Tree {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package state
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
ac "github.com/tendermint/tendermint2/account"
|
ac "github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/vm"
|
"github.com/tendermint/tendermint/vm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AccountGetter interface {
|
type AccountGetter interface {
|
||||||
|
@ -4,10 +4,10 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"github.com/tendermint/tendermint2/vm"
|
"github.com/tendermint/tendermint/vm"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NOTE: If an error occurs during block execution, state will be left
|
// NOTE: If an error occurs during block execution, state will be left
|
||||||
|
@ -4,12 +4,12 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
"github.com/tendermint/tendermint2/merkle"
|
"github.com/tendermint/tendermint/merkle"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GenesisAccount struct {
|
type GenesisAccount struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package state
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "state")
|
var log = logger.New("module", "state")
|
||||||
|
@ -9,12 +9,12 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
. "github.com/tendermint/tendermint2/consensus/types"
|
. "github.com/tendermint/tendermint/consensus/types"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
|
|
||||||
"github.com/tendermint/ed25519"
|
"github.com/tendermint/ed25519"
|
||||||
)
|
)
|
||||||
|
@ -5,11 +5,11 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
"github.com/tendermint/tendermint2/merkle"
|
"github.com/tendermint/tendermint/merkle"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package state
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
|
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -4,10 +4,10 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
dbm "github.com/tendermint/tendermint2/db"
|
dbm "github.com/tendermint/tendermint/db"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package state
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
ac "github.com/tendermint/tendermint2/account"
|
ac "github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/vm"
|
"github.com/tendermint/tendermint/vm"
|
||||||
"github.com/tendermint/tendermint2/vm/sha3"
|
"github.com/tendermint/tendermint/vm/sha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TxCache struct {
|
type TxCache struct {
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Persistent (mostly) static data for each Validator
|
// Persistent (mostly) static data for each Validator
|
||||||
|
@ -7,10 +7,10 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/merkle"
|
"github.com/tendermint/tendermint/merkle"
|
||||||
"github.com/tendermint/tendermint2/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatorSet represent a set of *Validator at a given height.
|
// ValidatorSet represent a set of *Validator at a given height.
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package state
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
|
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -8,11 +8,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/config"
|
"github.com/tendermint/tendermint/config"
|
||||||
"github.com/tendermint/tendermint2/merkle"
|
"github.com/tendermint/tendermint/merkle"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Block struct {
|
type Block struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package types
|
package types
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "types")
|
var log = logger.New("module", "types")
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/merkle"
|
"github.com/tendermint/tendermint/merkle"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBasicPartSet(t *testing.T) {
|
func TestBasicPartSet(t *testing.T) {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/tendermint/tendermint2/account"
|
"github.com/tendermint/tendermint/account"
|
||||||
"github.com/tendermint/tendermint2/binary"
|
"github.com/tendermint/tendermint/binary"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package vm
|
package vm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/tendermint2/logger"
|
"github.com/tendermint/tendermint/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logger.New("module", "vm")
|
var log = logger.New("module", "vm")
|
||||||
|
@ -3,9 +3,9 @@ package vm
|
|||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/ripemd160"
|
"code.google.com/p/go.crypto/ripemd160"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
"github.com/tendermint/tendermint2/vm/secp256k1"
|
"github.com/tendermint/tendermint/vm/secp256k1"
|
||||||
"github.com/tendermint/tendermint2/vm/sha3"
|
"github.com/tendermint/tendermint/vm/sha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var nativeContracts = make(map[Word256]NativeContract)
|
var nativeContracts = make(map[Word256]NativeContract)
|
||||||
|
@ -2,7 +2,7 @@ package vm
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Not goroutine safe
|
// Not goroutine safe
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package vm
|
package vm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
. "github.com/tendermint/tendermint2/vm"
|
. "github.com/tendermint/tendermint/vm"
|
||||||
"github.com/tendermint/tendermint2/vm/sha3"
|
"github.com/tendermint/tendermint/vm/sha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FakeAppState struct {
|
type FakeAppState struct {
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
. "github.com/tendermint/tendermint2/vm"
|
. "github.com/tendermint/tendermint/vm"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newAppState() *FakeAppState {
|
func newAppState() *FakeAppState {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package vm
|
package vm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "github.com/tendermint/tendermint2/common"
|
. "github.com/tendermint/tendermint/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Reference in New Issue
Block a user