neoneo-go/pkg/core
dauTT 1360e1de68 Added rpc unit tests (#107)
* Fixed small incosistencies related to comments and variable name

* For testing purposes we have to move the method newBlockchain from the cli/server/server.go to  pkg/core/blockchain.go. In addition we have to rename it to NewBlockchainLevelDB in order to be able to export it and avoid naming conflicts. In future we still need to think how to switch between different blockchain implementation easily but for the time being this is not possible.

* Added unit tests for the rpc server

* Added unit_testnet chain fixture

* fixed port number

* Added errors handling

* move unit_testnet chain from 'cli/chains' to 'pkg/rpc/chains'
2019-01-22 13:14:52 +01:00
..
storage Optimizations + some improvements (#105) 2018-11-26 16:56:45 +01:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction SendToAddress RPC call (#114) 2018-12-21 10:32:18 +01:00
account_state.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
account_state_test.go Cross platform virtual machine implementation (#60) 2018-03-30 18:15:06 +02:00
asset_state.go Added rpc unit tests (#107) 2019-01-22 13:14:52 +01:00
asset_state_test.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
block.go Persistance (#53) 2018-03-25 12:45:54 +02:00
block_base.go Small RPC improvements (#57) 2018-03-30 08:15:03 +02:00
block_test.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
blockchain.go Added rpc unit tests (#107) 2019-01-22 13:14:52 +01:00
blockchain_test.go Persistance (#53) 2018-03-25 12:45:54 +02:00
blockchainer.go Implemented rcp method GetAssetState (#103) 2018-11-26 22:12:33 +01:00
cache.go Added rpc unit tests (#107) 2019-01-22 13:14:52 +01:00
coin_state.go Persist transactions (#51) 2018-03-21 17:11:04 +01:00
contract_state.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
header.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
header_hash_list.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
header_test.go Smartcontract (#39) 2018-03-04 14:56:49 +01:00
helper_test.go Persistance (#53) 2018-03-25 12:45:54 +02:00
spent_coin_state.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
spent_coin_state_test.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
unspent_coin_state.go Added rpc unit tests (#107) 2019-01-22 13:14:52 +01:00
unspent_coint_state_test.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
util.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
util_test.go Persistance (#53) 2018-03-25 12:45:54 +02:00
validator_state.go Persist transactions (#51) 2018-03-21 17:11:04 +01:00