Skip to content

Commit

Permalink
test: Update V2 transaction test
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Apr 27, 2024
1 parent 6d12c93 commit 14fd07d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/blk_v2_transaction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ BOOST_AUTO_TEST_CASE(IsStandard_test)
t.nVersion = 1;
CheckIsStandard(t);

// Disallowed nVersion
t.nVersion = 2;
CheckIsNotStandard(t, "version");
CheckIsStandard(t);

// Disallowed nVersion
t.nVersion = 3;
CheckIsNotStandard(t, "version");

Expand All @@ -70,11 +70,11 @@ BOOST_AUTO_TEST_CASE(IsStandard_test)
t.nTime = 0;
CheckIsStandard(t);

// Disallowed nVersion, empty nTime
t.nVersion = 2;
t.nTime = 0;
CheckIsNotStandard(t, "version");
CheckIsStandard(t);

// Disallowed nVersion, empty nTime
t.nVersion = 3;
t.nTime = 0;
CheckIsNotStandard(t, "version");
Expand Down

0 comments on commit 14fd07d

Please sign in to comment.