diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-16 20:59:39 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2015-06-22 14:54:21 +0800 |
commit | c3f6c322c07a96d3930c75d05ed3859e7d80ddbc (patch) | |
tree | 8d702eb65113923b0b6a40c0d1d064f82ae2fb44 /rpc/api/utils.go | |
parent | 5c25403b13a698267230f859e822a7f714082198 (diff) | |
download | go-tangerine-c3f6c322c07a96d3930c75d05ed3859e7d80ddbc.tar go-tangerine-c3f6c322c07a96d3930c75d05ed3859e7d80ddbc.tar.gz go-tangerine-c3f6c322c07a96d3930c75d05ed3859e7d80ddbc.tar.bz2 go-tangerine-c3f6c322c07a96d3930c75d05ed3859e7d80ddbc.tar.lz go-tangerine-c3f6c322c07a96d3930c75d05ed3859e7d80ddbc.tar.xz go-tangerine-c3f6c322c07a96d3930c75d05ed3859e7d80ddbc.tar.zst go-tangerine-c3f6c322c07a96d3930c75d05ed3859e7d80ddbc.zip |
added DB api
Diffstat (limited to 'rpc/api/utils.go')
-rw-r--r-- | rpc/api/utils.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rpc/api/utils.go b/rpc/api/utils.go index 40bcae52f..a4ce6409a 100644 --- a/rpc/api/utils.go +++ b/rpc/api/utils.go @@ -24,6 +24,12 @@ var ( "setSolc", "datadir", }, + "db": []string{ + "getString", + "putString", + "getHex", + "putHex", + }, "debug": []string{ "dumpBlock", "getBlockRlp", @@ -137,6 +143,8 @@ func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth. apis[i] = NewAdminApi(xeth, eth, codec) case DebugApiName: apis[i] = NewDebugApi(xeth, eth, codec) + case DbApiName: + apis[i] = NewDbApi(xeth, eth, codec) case EthApiName: apis[i] = NewEthApi(xeth, codec) case MinerApiName: @@ -165,6 +173,8 @@ func Javascript(name string) string { return Admin_JS case DebugApiName: return Debug_JS + case DbApiName: + return Db_JS case MinerApiName: return Miner_JS case NetApiName: |