Skip to content
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

Renames for readability #409

Merged
merged 6 commits into from
Jul 25, 2024
Merged

Renames for readability #409

merged 6 commits into from
Jul 25, 2024

Conversation

samholmes
Copy link
Contributor

@samholmes samholmes commented Jul 24, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@samholmes samholmes marked this pull request as ready for review July 24, 2024 21:50
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few small typo things. Overall this is excellent.

src/common/utxobased/engine/UtxoEngine.ts Outdated Show resolved Hide resolved
src/common/utxobased/engine/UtxoEngine.ts Outdated Show resolved Hide resolved
src/common/utxobased/engine/UtxoEngine.ts Outdated Show resolved Hide resolved
src/common/utxobased/engine/UtxoEngineState.ts Outdated Show resolved Hide resolved
src/common/utxobased/engine/UtxoEngineState.ts Outdated Show resolved Hide resolved
src/common/utxobased/engine/UtxoEngineState.ts Outdated Show resolved Hide resolved
src/common/utxobased/engine/UtxoEngineState.ts Outdated Show resolved Hide resolved
Comment on lines 1005 to 1008
common: CommonParams,
needsTxSpecific: boolean,
serverUri: string,
txId: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So here we have positional parameters, but above updateTransactionsSpecific has named parameters. I'm not sure if we want to be more consistent about named / positional parameters, but I do appreciate that CommonParams is cleaned up now.

This is just an observation. There are no changes needed unless you want to.

The processor is a DAL, so it's better to be named appropriately.
All the type names will be suffixed with "Data" to distinguish them from
other models of the same kind of object (e.g. TransactionData vs
EdgeTransaction).
This component of the plugin makes more sense to be name "processor"
because it's the component that processes data from the network and
storage for the engine.
This adds documentation comments to each processor function to briefly
describe the function's intent.
Trezor is known to rate limit. In the future, a mock Blockbook interface
is the correct fix.
@samholmes samholmes enabled auto-merge July 25, 2024 21:25
@samholmes samholmes merged commit c7c8d84 into master Jul 25, 2024
2 checks passed
@swansontec swansontec deleted the sam/renames branch August 12, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants