New RPC method "version".

This commit is contained in:
Tom Ritchford
2015-01-27 16:40:01 -05:00
committed by Vinnie Falco
parent bfc436dccd
commit c3809ece67
9 changed files with 151 additions and 2 deletions

View File

@@ -20,6 +20,8 @@
#include <BeastConfig.h>
#include <ripple/rpc/impl/Handler.h>
#include <ripple/rpc/handlers/Handlers.h>
#include <ripple/rpc/handlers/Ledger.h>
#include <ripple/rpc/handlers/Version.h>
namespace ripple {
namespace RPC {
@@ -66,6 +68,7 @@ class HandlerTable {
// This is where the new-style handlers are added.
addHandler<LedgerHandler>();
addHandler<VersionHandler>();
}
const Handler* getHandler(std::string name) {