-
Notifications
You must be signed in to change notification settings - Fork 490
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
node: remove unused node GetTransaction and ListTxns methods #5983
Conversation
…ormerly used by v1 API)
This also seems to be the only place |
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.
Can all of these go from mockNode
?
func (m *mockNode) Start() {}
func (m *mockNode) ListeningAddress() (string, bool) {
func (m *mockNode) Stop() {}
func (m *mockNode) IsArchival() bool {
func (m *mockNode) OnNewBlock(block bookkeeping.Block, delta ledgercore.StateDelta) {}
func (m *mockNode) Uint64() uint64 {
And this means |
And I don't think:
will need to take SpecialAddresses anymore. |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5983 +/- ##
=======================================
Coverage 56.05% 56.05%
=======================================
Files 481 481
Lines 67679 67615 -64
=======================================
- Hits 37936 37902 -34
+ Misses 27177 27141 -36
- Partials 2566 2572 +6 ☔ View full report in Codecov by Sentry. |
I missed that. It's serious overkill though. We're just looking for txns from the stateproof sender. The heart of AddressTxns does this:
But there's really no reason to decode all of the txns. I'm perfectly happy to approve as is, though. |
Summary
While reviewing #5757 I noticed that there are two AlgorandFullNode methods that are no longer called since #4847 when the v1 API was removed.
Test Plan
Existing tests should pass.