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

sendopenidempotent rpc method #18

Conversation

RevCBH
Copy link

@RevCBH RevCBH commented Jul 3, 2020

No description provided.

@RevCBH RevCBH force-pushed the bennetthoffman/ch2462/sendopenidempotent-rpc-method branch from c9fcf6a to 977c661 Compare July 3, 2020 02:10
@RevCBH RevCBH requested a review from turbomaze July 3, 2020 02:11
const tx = await wallet.sendOpen(opts.name, opts.force, {
account: opts.account,
idempotencyKey: opts.idempotencyKey
});

Choose a reason for hiding this comment

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

Weird indentation here

Copy link
Author

Choose a reason for hiding this comment

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

Ahh yeah, the 'format on save' made the change set way bigger bc the codebase doesn't conform to whatever settings we use elsewhere.

Choose a reason for hiding this comment

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

Yeah hsd uses different .eslint settings, I recall some weirdness setting it up on my machine but don't remember everything involved. I forget if you need to use "bslint" (bcoin's eslint with frozen deps) or not

this.sendBidResults = new LRU(bidsCapacity);

// TODO (bennett) - make this configurable from options
const opensCapacity = 6500; // 300 opens * 20 + 1 blocks + 200 extra

Choose a reason for hiding this comment

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

Would prefer if the math were just coded in so we can change the parameters without needing to do the math ourselves (eg when we change 20 to 6)

@RevCBH RevCBH requested a review from turbomaze July 3, 2020 03:33
@@ -1,4 +1,4 @@
/*!
2015/*!

Choose a reason for hiding this comment

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

Did you do 2015G in vim and accidentally enter this lol

Copy link
Author

Choose a reason for hiding this comment

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

yeah, probably

Copy link
Author

Choose a reason for hiding this comment

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

Oh, no, it's actually that I tried to do 2015G in vscode because I was just in vim, instead of Ctrl+G 2015, which is correct

this.sendBidResults = new LRU(bidsCapacity);

// TODO (bennett) - make this configurable from options
const opensCapacity = consensus.MAX_BLOCK_OPENS * opensCacheSizeInBlocks;

Choose a reason for hiding this comment

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

Variable not defined opensCacheSizeInBlocks

Copy link
Author

Choose a reason for hiding this comment

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

Whoops, deleted wrong line

@RevCBH RevCBH force-pushed the bennetthoffman/ch2462/sendopenidempotent-rpc-method branch from 119a9e3 to d27ccd1 Compare July 3, 2020 03:39
@RevCBH RevCBH merged commit d1d4966 into production-namebase Jul 3, 2020
@turbomaze turbomaze deleted the bennetthoffman/ch2462/sendopenidempotent-rpc-method branch July 3, 2020 03:41
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