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

support non-clean shutdown #155

Merged
merged 17 commits into from
Sep 1, 2022
Merged

support non-clean shutdown #155

merged 17 commits into from
Sep 1, 2022

Conversation

tsahee
Copy link
Contributor

@tsahee tsahee commented Aug 29, 2022

Adds shutdown markers, and adds time on blockchain which invokes triedb cache writes

joshuacolvin0
joshuacolvin0 previously approved these changes Aug 29, 2022
Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

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

LGTM

core/blockchain.go Outdated Show resolved Hide resolved
@tsahee tsahee marked this pull request as draft August 30, 2022 05:05
@tsahee tsahee marked this pull request as ready for review August 30, 2022 16:21
@hkalodner hkalodner mentioned this pull request Aug 30, 2022
PlasmaPower
PlasmaPower previously approved these changes Aug 30, 2022
Copy link
Collaborator

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -54,3 +67,52 @@ func (bc *BlockChain) ClipToPostNitroGenesis(blockNum rpc.BlockNumber) (rpc.Bloc
}
return blockNum, currentBlock
}

// finds the number of blocks that aren't prunable
func (bc *BlockChain) FindRetentionBound() uint64 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably not needed, but we might be able to improve performance here by remembering the previous retention bound between calls as a hint for the search

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this would work better with a little-different search algo.. leaving it to later

core/blockchain_arbitrum.go Outdated Show resolved Hide resolved
Copy link
Contributor

@hkalodner hkalodner left a comment

Choose a reason for hiding this comment

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

LGTM

@PlasmaPower PlasmaPower merged commit ee7893f into master Sep 1, 2022
@PlasmaPower PlasmaPower deleted the shutdown-markers branch September 1, 2022 20:54
@Tristan-Wilson Tristan-Wilson mentioned this pull request Feb 28, 2023
13 tasks
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.

5 participants