OSDN Git Service

Dev db expandability (#44) dev
authorwz <mars@bytom.io>
Mon, 6 May 2019 12:36:34 +0000 (20:36 +0800)
committerPaladz <yzhu101@uottawa.ca>
Mon, 6 May 2019 12:36:34 +0000 (20:36 +0800)
commit33b33af46f907af24db14143f5dbb83699ae17f8
tree1a3a6c002b279be42d096a27a015a72ddb43352d
parent069119567369774d3b4bd21475107393fc475a3e
Dev db expandability (#44)

* delete leveldb from tm

* Add package for sqlite

* Add the sqlite framework

* delete go-xom

* Modify the leveldb of block and state and utxoViewPoints to SQLDB

* add mattn vendor

* add mattn vendor

* Modify test

* Modify review proposal

* Add Database table dependencies

* Add unit test

* Modify bug for store

* modify update respone
60 files changed:
accesstoken/accesstoken.go
accesstoken/accesstoken_test.go
account/accounts.go
account/accounts_test.go
account/utxo_keeper.go
account/utxo_keeper_test.go
api/api_test.go
asset/asset.go
asset/asset_test.go
blockchain/txfeed/txfeed.go
database/cache.go [moved from database/leveldb/cache.go with 98% similarity]
database/cache_test.go [moved from database/leveldb/cache_test.go with 98% similarity]
database/db/db.go [moved from vendor/github.com/tendermint/tmlibs/db/db.go with 58% similarity]
database/leveldb/LICENSE.md [moved from vendor/github.com/tendermint/tmlibs/db/LICENSE.md with 100% similarity]
database/leveldb/README.md [moved from vendor/github.com/tendermint/tmlibs/db/README.md with 100% similarity]
database/leveldb/go_level_db.go [moved from vendor/github.com/tendermint/tmlibs/db/go_level_db.go with 87% similarity]
database/leveldb/go_level_db_test.go [moved from vendor/github.com/tendermint/tmlibs/db/go_level_db_test.go with 99% similarity]
database/leveldb/mem_db.go [moved from vendor/github.com/tendermint/tmlibs/db/mem_db.go with 87% similarity]
database/leveldb/mem_db_test.go [moved from vendor/github.com/tendermint/tmlibs/db/mem_db_test.go with 98% similarity]
database/leveldb/utxo_view.go [deleted file]
database/orm/block.go [new file with mode: 0644]
database/orm/claim_tx.go [new file with mode: 0644]
database/orm/transaction.go [new file with mode: 0644]
database/orm/utxo.go [new file with mode: 0644]
database/sql_store.go [new file with mode: 0644]
database/sql_store_test.go [new file with mode: 0644]
database/sqlite/sqlite_db.go [new file with mode: 0644]
database/store.go [moved from database/leveldb/store.go with 98% similarity]
database/store_test.go [moved from database/leveldb/store_test.go with 97% similarity]
database/utxo_view.go [new file with mode: 0644]
database/utxo_view_test.go [moved from database/leveldb/utxo_view_test.go with 97% similarity]
net/http/authn/authn_test.go
node/node.go
p2p/switch.go
protocol/block.go
protocol/store.go
protocol/txpool_test.go
test/bench_blockchain_test.go
test/block_test.go
test/chain_test_util.go
test/integration/standard_transaction_test.go
test/protocol_test.go
test/protocol_test_util.go
test/tx_test.go
test/tx_test_util.go
test/util.go
test/wallet_test_util.go
vendor/github.com/tendermint/abci/example/dummy/dummy.go
vendor/github.com/tendermint/abci/example/dummy/persistent_dummy.go
vendor/github.com/tendermint/tmlibs/db/c_level_db.go [deleted file]
vendor/github.com/tendermint/tmlibs/db/c_level_db_test.go [deleted file]
wallet/annotated.go
wallet/indexer.go
wallet/recovery.go
wallet/recovery_test.go
wallet/unconfirmed_test.go
wallet/utxo.go
wallet/utxo_test.go
wallet/wallet.go
wallet/wallet_test.go