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

add command pop_blocks monerod #4903

Merged
merged 1 commit into from
Dec 12, 2018

Conversation

Jasonhcwong
Copy link
Contributor

The pull request adds a command "pop_blocks " to monerod.

src/rpc/core_rpc_server.h Outdated Show resolved Hide resolved
src/rpc/core_rpc_server.cpp Outdated Show resolved Hide resolved
src/rpc/core_rpc_server.cpp Outdated Show resolved Hide resolved
src/rpc/core_rpc_server.cpp Outdated Show resolved Hide resolved
src/rpc/core_rpc_server.cpp Outdated Show resolved Hide resolved
src/daemon/rpc_command_executor.cpp Outdated Show resolved Hide resolved
src/daemon/command_parser_executor.cpp Show resolved Hide resolved
try
{
uint64_t nblocks = boost::lexical_cast<uint64_t>(args[0]);
if (nblocks < 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please keep the same brace style as the code you're modifying, and consistent within the patch. Most code has the brace on a new line, and half your code here also does.

src/cryptonote_core/blockchain.cpp Show resolved Hide resolved
src/cryptonote_core/blockchain.cpp Show resolved Hide resolved
Copy link
Collaborator

@moneromooo-monero moneromooo-monero left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

@xiphon
Copy link
Contributor

xiphon commented Nov 27, 2018

Please squash

add new public method to Blockchain and update according to code review

update after review: better lock/unlock, try catch and coding style
@Jasonhcwong
Copy link
Contributor Author

did I do the squash correctly?

Copy link
Collaborator

@moneromooo-monero moneromooo-monero left a comment

Choose a reason for hiding this comment

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

Looks like you did.

Copy link
Contributor

@fluffypony fluffypony left a comment

Choose a reason for hiding this comment

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

Reviewed

@fluffypony fluffypony merged commit dc1c125 into monero-project:master Dec 12, 2018
fluffypony added a commit that referenced this pull request Dec 12, 2018
dc1c125 add command pop_blocks (Jason Wong)
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.

4 participants