Skip to content

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

@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
Contributor

@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

}

// 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

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