Add dump_consensus_state rpc command. Made it a little more secure

by moving the PrivValidator out of RoundState.
This commit is contained in:
Jae Kwon
2015-04-20 20:39:42 -07:00
parent df026f64fa
commit 733dfcf4ad
6 changed files with 88 additions and 18 deletions

View File

@ -14,6 +14,7 @@ var Routes = map[string]*rpc.RPCFunc{
"call": rpc.NewRPCFunc(Call, []string{"address", "data"}),
"call_code": rpc.NewRPCFunc(CallCode, []string{"code", "data"}),
"list_validators": rpc.NewRPCFunc(ListValidators, []string{}),
"dump_consensus_state": rpc.NewRPCFunc(DumpConsensusState, []string{}),
"dump_storage": rpc.NewRPCFunc(DumpStorage, []string{"address"}),
"broadcast_tx": rpc.NewRPCFunc(BroadcastTx, []string{"tx"}),
"list_accounts": rpc.NewRPCFunc(ListAccounts, []string{}),