sign_for RPC command fixes (RIPD-182):

o Remove warning written to log by sign_for command.

 o The sign_for RPC command previously only worked in the
   "json sign_for" form.  The command now works as a straight
   "sign_for".  The "offline" parameter also works.

 o Don't autofill Fee or Paths when signing offline.
This commit is contained in:
Scott Schurr
2015-09-17 17:56:12 -07:00
parent 780a553662
commit c28c516b22
8 changed files with 212 additions and 88 deletions

View File

@@ -22,6 +22,7 @@
#include <ripple/app/misc/NetworkOPs.h>
#include <ripple/server/Role.h>
#include <ripple/ledger/ApplyView.h>
namespace ripple {
@@ -81,7 +82,8 @@ Json::Value transactionSign (
Role role,
int validatedLedgerAge,
Application& app,
std::shared_ptr<ReadView const> ledger);
std::shared_ptr<ReadView const> ledger,
ApplyFlags flags = tapNONE);
/** Returns a Json::objectValue. */
Json::Value transactionSubmit (
@@ -91,7 +93,8 @@ Json::Value transactionSubmit (
int validatedLedgerAge,
Application& app,
std::shared_ptr<ReadView const> ledger,
ProcessTransactionFn const& processTransaction);
ProcessTransactionFn const& processTransaction,
ApplyFlags flags = tapNONE);
/** Returns a Json::objectValue. */
Json::Value transactionSignFor (
@@ -100,7 +103,8 @@ Json::Value transactionSignFor (
Role role,
int validatedLedgerAge,
Application& app,
std::shared_ptr<ReadView const> ledger);
std::shared_ptr<ReadView const> ledger,
ApplyFlags flags = tapNONE);
/** Returns a Json::objectValue. */
Json::Value transactionSubmitMultiSigned (
@@ -110,7 +114,8 @@ Json::Value transactionSubmitMultiSigned (
int validatedLedgerAge,
Application& app,
std::shared_ptr<ReadView const> ledger,
ProcessTransactionFn const& processTransaction);
ProcessTransactionFn const& processTransaction,
ApplyFlags flags = tapNONE);
} // RPC
} // ripple