Remove TxnSignApiFacade (RIPD-945):

Replace TxnSignApiFacade with separate passed in arguments to
the various sign/submit RPC commands.

Also increase unit test coverage of the submit_multisign RPC
command.
This commit is contained in:
Scott Schurr
2015-09-02 16:58:49 -07:00
committed by Edward Hennis
parent 9b787434c9
commit eed1a891a7
7 changed files with 872 additions and 496 deletions

View File

@@ -18,8 +18,8 @@
//==============================================================================
#include <BeastConfig.h>
#include <ripple/app/main/Application.h>
#include <ripple/app/ledger/LedgerMaster.h>
#include <ripple/protocol/ErrorCodes.h>
#include <ripple/protocol/Feature.h>
#include <ripple/resource/Fees.h>
#include <ripple/rpc/Context.h>
@@ -46,7 +46,12 @@ Json::Value doSignFor (RPC::Context& context)
auto const failType = NetworkOPs::doFailHard (failHard);
return RPC::transactionSignFor (
context.params, failType, context.netOps, context.role);
context.params,
failType,
context.role,
context.ledgerMaster.getValidatedLedgerAge(),
context.app.getFeeTrack(),
context.ledgerMaster.getCurrentLedger());
}
} // ripple