-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Patch CTID #4738
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
Patch CTID #4738
Conversation
@intelliot I believe devent was reset to a networkID < 1024 therefore it did not have a ctid. @cindyyan317 can you please recheck the devnet again with your locally running PR? |
Hi @dangell7 . for the transaction "CCBBD2F5CEE90FA7A2ED13A7A343D015F57950B562185734E125B7BE740F2428", i still can not see its ctid from tx. However , i can see its ctid from account_tx output.
What does it mean? It should not have ctid when networdID < 1024? devnet's networkId has been always 2 , right? |
Yes, I think Devnet's NetworkID has always been @dangell7 , I think it should be possible (and would be ideal) to always return |
You're right and I will look at the issue deeper this weekend. I don't like peering from my work computer. I have an env now to spin up a peer easier to test. I will also check on the CTID on txs <= 1024. I think I misspoke. |
@intelliot moving this to draft while I write more tests. Can confirm ctid is returned when network id <= 1024. |
@intelliot I'm opening this back up for review. I see no issues |
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.
👍 The code looks good to me. @dangell7 is this ready to merge or are there still things that need to be resolved?
@seelabs Yeah this is ready. I tried to test the |
|
I tried to build a rippled with this PR to run on the devnet's full history node, but since this PR was based off the 2.2.0-rc1, so the build is getting amendment blocked. @dangell7 can you please rebase off the master branch so I can build it for 2.2.0? Thanks. |
@dangell7 running a test to use ctid in lowercase seems to be breaking the test
Same works for upper case ctid
Also, this PR needs to be rebased. Still hitting
|
@dangell7 @Transia-RnD This has two valid reviews, and the only changes after were merges from |
Yes I believe so. However the reason it was not merged is because it requires a perf signoff by @sophiax851. Hopefully that can continue now. |
Commit Message:
|
I'm traveling today, I'll try to run a load and see if there's any regression comparing with a same load on 2.4.0. |
Hi @dangell7, Is this branch based off the 2.4.0? I've done some testing with the following Load Scenario: |
Well thats very interesting. I just updated the branch just in case but I'm pretty sure I rebased off 2.4.0 last week. |
I think your previous branch was based off 2.4.0: I think we are all good, I'd sign off on this PR. Thanks for your work!! |
@bthomee this looks good to go |
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.
No objections from Clio side. Tx handler's logic looks fine.
@dangell7 can you please update the branch? I'll merge it right afterwards. |
This change fixes a number of issues involved with CTID: * CTID is not present on all RPC tx transactions. * rpcWRONG_NETWORK is missing in the ErrorCodes.cpp
High Level Overview of Change
Fix a number of issues involved with CTID.
tx
transactions.ErrorCodes.cpp
Context of Change
Type of Change
.gitignore
, formatting, dropping support for older tooling)API Impact
libxrpl
change (any change that may affectlibxrpl
or dependents oflibxrpl
)