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

Fix ledger_priority.sequential_blocks testcase #4805

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions nano/core_test/ledger_priority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ TEST (ledger_priority, sequential_blocks)
ASSERT_EQ (100, priority_balance2);
ASSERT_EQ (100, priority_balance3); // Max of current (50) and previous (100)

ASSERT_EQ (nano::dev::genesis->sideband ().timestamp, timestamp1);
ASSERT_EQ (send1->sideband ().timestamp, timestamp2);
ASSERT_EQ (open->sideband ().timestamp, timestamp3);
ASSERT_EQ (nano::dev::genesis->sideband ().timestamp, timestamp1); // genesis account
// Opening account must have equal or greater timestamp than sending counterpart.
ASSERT_GE (timestamp2, send1->sideband ().timestamp); // key1 account
ASSERT_EQ (open->sideband ().timestamp, timestamp3); // key1 account
}

// Test priority after rolling back state blocks
Expand Down
Loading