OSDN Git Service

move several packages out of blockchain (#473)
authorYongfeng LI <wliyongfeng@gmail.com>
Sat, 24 Mar 2018 02:38:36 +0000 (10:38 +0800)
committerPaladz <yzhu101@uottawa.ca>
Sat, 24 Mar 2018 02:38:36 +0000 (10:38 +0800)
* move account package out of blockchain

* move asset package out of blockchain

* move accesstoken out of blockchain

* move wallet package out of blockchain

32 files changed:
accesstoken/accesstoken.go [moved from blockchain/accesstoken/accesstoken.go with 100% similarity]
accesstoken/accesstoken_test.go [moved from blockchain/accesstoken/accesstoken_test.go with 100% similarity]
account/accounts.go [moved from blockchain/account/accounts.go with 100% similarity]
account/accounts_test.go [moved from blockchain/account/accounts_test.go with 100% similarity]
account/builder.go [moved from blockchain/account/builder.go with 100% similarity]
account/indexer.go [moved from blockchain/account/indexer.go with 100% similarity]
account/reserve.go [moved from blockchain/account/reserve.go with 100% similarity]
account/reserve_test.go [moved from blockchain/account/reserve_test.go with 100% similarity]
asset/annotate.go [moved from blockchain/asset/annotate.go with 100% similarity]
asset/asset.go [moved from blockchain/asset/asset.go with 100% similarity]
asset/asset_test.go [moved from blockchain/asset/asset_test.go with 100% similarity]
asset/builder.go [moved from blockchain/asset/builder.go with 100% similarity]
blockchain/accounts.go
blockchain/api.go
blockchain/assets.go
blockchain/blockchain_reactor.go
blockchain/errors.go
blockchain/query.go
blockchain/reactor.go
mining/cpuminer/cpuminer.go
mining/mining.go
mining/miningpool/minepool.go
net/http/authn/authn.go
net/http/authn/authn_test.go
node/node.go
test/integration/standard_transaction_test.go
test/performance/mining_test.go
test/util.go
wallet/annotated.go [moved from blockchain/wallet/annotated.go with 98% similarity]
wallet/indexer.go [moved from blockchain/wallet/indexer.go with 99% similarity]
wallet/wallet.go [moved from blockchain/wallet/wallet.go with 98% similarity]
wallet/wallet_test.go [moved from blockchain/wallet/wallet_test.go with 98% similarity]

similarity index 100%
rename from blockchain/asset/asset.go
rename to asset/asset.go
similarity index 100%
rename from blockchain/asset/builder.go
rename to asset/builder.go
index 8fbdc92..42269d8 100644 (file)
@@ -6,7 +6,7 @@ import (
 
        log "github.com/sirupsen/logrus"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/common"
        "github.com/bytom/consensus"
        "github.com/bytom/crypto/ed25519/chainkd"
index 1f49ecc..66dc219 100644 (file)
@@ -11,7 +11,7 @@ import (
        log "github.com/sirupsen/logrus"
        cmn "github.com/tendermint/tmlibs/common"
 
-       "github.com/bytom/blockchain/accesstoken"
+       "github.com/bytom/accesstoken"
        cfg "github.com/bytom/config"
        "github.com/bytom/dashboard"
        "github.com/bytom/errors"
@@ -19,7 +19,7 @@ import (
        "github.com/bytom/net/http/httpjson"
        "github.com/bytom/net/http/static"
        "github.com/bytom/protocol"
-       "github.com/bytom/blockchain/wallet"
+       "github.com/bytom/wallet"
 )
 
 var (
index 65d3bbc..e16480e 100644 (file)
@@ -3,7 +3,7 @@ package blockchain
 import (
        "context"
 
-       "github.com/bytom/blockchain/asset"
+       "github.com/bytom/asset"
        "github.com/bytom/crypto/ed25519/chainkd"
 
        log "github.com/sirupsen/logrus"
index 1642276..e2a56c4 100644 (file)
@@ -4,7 +4,7 @@ import (
        log "github.com/sirupsen/logrus"
 
        "github.com/bytom/blockchain/query"
-       "github.com/bytom/blockchain/wallet"
+       "github.com/bytom/wallet"
        "github.com/bytom/consensus"
        "github.com/bytom/consensus/difficulty"
        chainjson "github.com/bytom/encoding/json"
index 4dc727f..1a0909c 100644 (file)
@@ -3,7 +3,7 @@ package blockchain
 import (
        "context"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/blockchain/query"
        "github.com/bytom/blockchain/query/filter"
        "github.com/bytom/blockchain/rpc"
index 39891be..364da93 100755 (executable)
@@ -6,7 +6,7 @@ import (
 
        log "github.com/sirupsen/logrus"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/blockchain/query"
 )
 
index 6d74689..4083f81 100755 (executable)
@@ -10,7 +10,7 @@ import (
        cmn "github.com/tendermint/tmlibs/common"
 
        "github.com/bytom/blockchain/txfeed"
-       "github.com/bytom/blockchain/wallet"
+       "github.com/bytom/wallet"
        "github.com/bytom/mining/cpuminer"
        "github.com/bytom/mining/miningpool"
        "github.com/bytom/p2p"
index 9112980..80d7f8d 100644 (file)
@@ -10,7 +10,7 @@ import (
 
        log "github.com/sirupsen/logrus"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/consensus/difficulty"
        "github.com/bytom/mining"
        "github.com/bytom/protocol"
index d0679b8..4166d23 100644 (file)
@@ -10,7 +10,7 @@ import (
 
        log "github.com/sirupsen/logrus"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/blockchain/txbuilder"
        "github.com/bytom/consensus"
        "github.com/bytom/consensus/difficulty"
index 0fe2e41..58c57da 100644 (file)
@@ -7,7 +7,7 @@ import (
 
        log "github.com/sirupsen/logrus"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/mining"
        "github.com/bytom/protocol"
        "github.com/bytom/protocol/bc"
index 923466c..b521478 100644 (file)
@@ -9,7 +9,7 @@ import (
        "sync"
        "time"
 
-       "github.com/bytom/blockchain/accesstoken"
+       "github.com/bytom/accesstoken"
        "github.com/bytom/errors"
 )
 
index 1c28c26..7b0ee8b 100644 (file)
@@ -9,7 +9,7 @@ import (
 
        dbm "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/accesstoken"
+       "github.com/bytom/accesstoken"
        "github.com/bytom/errors"
 )
 
index 5cc5da7..59457f7 100755 (executable)
@@ -15,13 +15,13 @@ import (
 
        "github.com/bytom/crypto/ed25519/chainkd"
        bc "github.com/bytom/blockchain"
-       "github.com/bytom/blockchain/accesstoken"
-       "github.com/bytom/blockchain/account"
-       "github.com/bytom/blockchain/asset"
+       "github.com/bytom/accesstoken"
+       "github.com/bytom/account"
+       "github.com/bytom/asset"
        "github.com/bytom/blockchain/pseudohsm"
        "github.com/bytom/blockchain/txdb"
        "github.com/bytom/blockchain/txfeed"
-       w "github.com/bytom/blockchain/wallet"
+       w "github.com/bytom/wallet"
        cfg "github.com/bytom/config"
        "github.com/bytom/env"
        "github.com/bytom/p2p"
index 26bbcab..391ed7b 100644 (file)
@@ -7,7 +7,7 @@ import (
 
        dbm "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/blockchain/pseudohsm"
        "github.com/bytom/crypto/ed25519/chainkd"
        "github.com/bytom/protocol/bc/types"
index 2d7b189..6c3a619 100644 (file)
@@ -6,7 +6,7 @@ import (
 
        dbm "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/config"
        "github.com/bytom/mining"
        "github.com/bytom/test"
index 376f946..a89a4bf 100644 (file)
@@ -6,7 +6,7 @@ import (
 
        dbm "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/account"
+       "github.com/bytom/account"
        "github.com/bytom/blockchain/pseudohsm"
        "github.com/bytom/blockchain/txbuilder"
        "github.com/bytom/blockchain/txdb"
similarity index 98%
rename from blockchain/wallet/annotated.go
rename to wallet/annotated.go
index d2ef468..9936053 100755 (executable)
@@ -7,8 +7,8 @@ import (
        log "github.com/sirupsen/logrus"
        "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/account"
-       "github.com/bytom/blockchain/asset"
+       "github.com/bytom/account"
+       "github.com/bytom/asset"
        "github.com/bytom/blockchain/query"
        "github.com/bytom/blockchain/signers"
        "github.com/bytom/common"
similarity index 99%
rename from blockchain/wallet/indexer.go
rename to wallet/indexer.go
index 80f5133..a983f78 100755 (executable)
@@ -8,8 +8,8 @@ import (
        log "github.com/sirupsen/logrus"
        "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/account"
-       "github.com/bytom/blockchain/asset"
+       "github.com/bytom/account"
+       "github.com/bytom/asset"
        "github.com/bytom/blockchain/query"
        "github.com/bytom/consensus"
        "github.com/bytom/consensus/segwit"
similarity index 98%
rename from blockchain/wallet/wallet.go
rename to wallet/wallet.go
index e7603d2..8150020 100755 (executable)
@@ -8,9 +8,9 @@ import (
        "github.com/tendermint/go-wire/data/base58"
        "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/accesstoken"
-       "github.com/bytom/blockchain/account"
-       "github.com/bytom/blockchain/asset"
+       "github.com/bytom/accesstoken"
+       "github.com/bytom/account"
+       "github.com/bytom/asset"
        "github.com/bytom/blockchain/pseudohsm"
        "github.com/bytom/crypto/ed25519/chainkd"
        "github.com/bytom/crypto/sha3pool"
similarity index 98%
rename from blockchain/wallet/wallet_test.go
rename to wallet/wallet_test.go
index c7efb2c..2eff5f1 100755 (executable)
@@ -10,8 +10,8 @@ import (
        "github.com/tendermint/go-wire/data/base58"
        dbm "github.com/tendermint/tmlibs/db"
 
-       "github.com/bytom/blockchain/account"
-       "github.com/bytom/blockchain/asset"
+       "github.com/bytom/account"
+       "github.com/bytom/asset"
        "github.com/bytom/blockchain/pseudohsm"
        "github.com/bytom/blockchain/txbuilder"
        "github.com/bytom/blockchain/txdb"