Skip to content

Tests for inserting incorrect root hash blocks#169

Merged
JekaMas merged 11 commits into
masterfrom
red-tests-#111
Nov 15, 2019
Merged

Tests for inserting incorrect root hash blocks#169
JekaMas merged 11 commits into
masterfrom
red-tests-#111

Conversation

@JekaMas

@JekaMas JekaMas commented Nov 13, 2019

Copy link
Copy Markdown
Contributor

related to #111

@b00ris b00ris left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

t.Error("expected account to exist")
}

if balance := st.GetBalance(from); balance.Cmp(big.NewInt(1000000000)) != 0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think you should use a more precise check. Like, check with some delta.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We check that balance is the same after incorrect block.

@JekaMas JekaMas merged commit cdd0b95 into master Nov 15, 2019
@AlexeyAkhunov AlexeyAkhunov deleted the red-tests-#111 branch April 4, 2020 09:48
battlmonstr pushed a commit that referenced this pull request Sep 14, 2023
* Remove incarnation, add recreation

* Fix recreation test

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
taratorio pushed a commit that referenced this pull request Jul 23, 2024
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