mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add RPC "simulate" to execute a dry run of a transaction (#5069)
- Spec: https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0069d-simulate - Also update signing methods to autofill fees better and properly handle transactions that require a non-standard fee.
This commit is contained in:
@@ -154,7 +154,10 @@ enum error_code_i {
|
||||
// deposit_authorized + credentials
|
||||
rpcBAD_CREDENTIALS = 96,
|
||||
|
||||
rpcLAST = rpcBAD_CREDENTIALS // rpcLAST should always equal the last code.
|
||||
// Simulate
|
||||
rpcTX_SIGNED = 97,
|
||||
|
||||
rpcLAST = rpcTX_SIGNED // rpcLAST should always equal the last code.
|
||||
};
|
||||
|
||||
/** Codes returned in the `warnings` array of certain RPC commands.
|
||||
|
||||
@@ -115,6 +115,8 @@ JSS(SettleDelay); // in: TransactionSign
|
||||
JSS(SendMax); // in: TransactionSign
|
||||
JSS(Sequence); // in/out: TransactionSign; field.
|
||||
JSS(SetFlag); // field.
|
||||
JSS(Signer); // field.
|
||||
JSS(Signers); // field.
|
||||
JSS(HookStateData); // field.
|
||||
JSS(HookStateKey); // field.
|
||||
JSS(SigningPubKey); // field.
|
||||
|
||||
Reference in New Issue
Block a user