-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add DeliverMax (alias for Amount) in Payment transactions #4733
Changes from 3 commits
a4adde5
7d79f89
c9f7907
775731b
2959308
ef6cbc0
2ec189b
aa9f0a9
e35bf62
03edc89
9f4206a
432fd16
03713c1
c99959e
d1a2c59
44771d1
48697e8
ff41b90
5b30a25
198e7cd
bd53535
cf0798a
efbf39a
70bd1b7
5e7fa7c
f4bfe95
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3150,10 +3150,15 @@ NetworkOPsImp::transJson( | |
} | ||
|
||
MultiApiJson multiObj({jvObj, jvObj}); | ||
static_assert(MultiApiJson::size == 2); | ||
static_assert(RPC::apiMinimumSupportedVersion == 1); | ||
for (unsigned apiVersion = 1, lastIndex = MultiApiJson::size; | ||
apiVersion <= 2; | ||
// Minimum supported API version must match index 0 in MultiApiJson | ||
static_assert(apiVersionSelector(RPC::apiMinimumSupportedVersion)() == 0); | ||
// Beta API version must match last index in MultiApiJson | ||
static_assert( | ||
apiVersionSelector(RPC::apiBetaVersion)() + 1 // | ||
== MultiApiJson::size); | ||
for (unsigned apiVersion = RPC::apiMinimumSupportedVersion, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the intentions of looping over the apiVersions from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That function is cool, but as written, it's only for tests. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh shoot, my bad - sorry about that. I did not notice this was not for tests 😆 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No worries |
||
lastIndex = MultiApiJson::size; | ||
apiVersion <= RPC::apiBetaVersion; | ||
++apiVersion) | ||
{ | ||
unsigned const index = apiVersionSelector(apiVersion)(); | ||
|
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.
Adding lines to the ordering file is great, as long as it follows the existing rules (which this does). It would be a problem if the line was added to
loops.txt
, or if the dependency didn't "fit" the existing order.