-
Notifications
You must be signed in to change notification settings - Fork 1k
Allow to sign transaction without relaying #3934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -29,6 +31,7 @@ public static JObject TransactionToJson(Transaction tx, ProtocolSettings setting | |||
JObject json = tx.ToJson(settings); | |||
json["sysfee"] = tx.SystemFee.ToString(); | |||
json["netfee"] = tx.NetworkFee.ToString(); | |||
json["raw"] = Convert.ToBase64String(tx.ToArray()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NACK. This changes the behavior of existing APIs for no real reason.
@@ -306,7 +307,13 @@ protected internal virtual JToken SendFrom(JArray _params) | |||
tx.NetworkFee = calFee; | |||
} | |||
(tx.NetworkFee <= settings.MaxFee).True_Or(RpcError.WalletFeeLimit); | |||
return SignAndRelay(snapshot, tx); | |||
if (relay) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code format issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tried to fix
Why add this ? Can you add more details? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more information
The information is clear, but maybe it's better to add a new endPoint |
Description
Allow to sign transaction without relaying to the network
Suitable for two-phase transaction sending
Fixes # (issue)
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: