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

Dont materialize unspent notes when creating a tx #2299

Merged
merged 3 commits into from
Oct 12, 2022

Conversation

NullSoldier
Copy link
Contributor

@NullSoldier NullSoldier commented Oct 5, 2022

Summary

This loaded all TX when creating a note and joinin its related
transaction to get its sequence.

Testing Plan

Run existing tests, and try creating a transaction on a big account.

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@NullSoldier NullSoldier requested a review from a team as a code owner October 5, 2022 15:03
@NullSoldier NullSoldier marked this pull request as draft October 5, 2022 15:03
@NullSoldier NullSoldier changed the title WIP: don't materialize all unspent notes when creating a transaction Dont materialize unspent notes when creating a tx Oct 11, 2022
I got this error and checked that I was synced with the block chain. The
error is misleading because it says your node must be synced, but your
node can be synced and still get this error because it has nothing to do
with being synced.
This loaded all TX when creating a note and joinin its related
transaction to get its sequence.
@NullSoldier NullSoldier marked this pull request as ready for review October 11, 2022 22:15
@@ -303,7 +303,7 @@ export class Config extends KeyStore<ConfigOptions> {
tlsKeyPath: files.resolve(files.join(dataDir, 'certs', 'node-key.pem')),
tlsCertPath: files.resolve(files.join(dataDir, 'certs', 'node-cert.pem')),
maxPeers: 50,
minimumBlockConfirmations: 12,
minimumBlockConfirmations: 2,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this an intentional change or for testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Intentional, but I snuck it into this PR. I should have wrote it in the description.

@NullSoldier NullSoldier merged commit 1387c68 into staging Oct 12, 2022
@NullSoldier NullSoldier deleted the reduce-confirmation branch October 12, 2022 15:36
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.

None yet

2 participants