Skip to content

Commit

Permalink
Older language version compatibility; minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Jun 21, 2021
1 parent 71d910a commit 4bf485a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Libplanet.Tests/Blocks/BlockTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,11 @@ public void BlockStructureSize()
[Fact]
public void OrderTxsForEvaluation()
{
const int protocolVersion = 1;
// New test should be written once this breaks with a protocol version bump.
const int protocolVersion = BlockHeader.CurrentProtocolVersion;
const int numSigners = 5;
const int numTxsPerSigner = 3;
var epoch = DateTimeOffset.FromUnixTimeSeconds(0);

ImmutableArray<PrivateKey> signers = ImmutableArray.Create(new PrivateKey[]
{
Expand Down Expand Up @@ -524,7 +526,7 @@ public void OrderTxsForEvaluation()
privateKey: signerNoncePair.signer,
genesisHash: null,
actions: new[] { new RandomAction(signerNoncePair.signer.ToAddress()) },
timestamp: DateTimeOffset.UnixEpoch)).ToImmutableArray();
timestamp: epoch)).ToImmutableArray();
// Rearrange transactions so that transactions are not grouped by signers
// while keeping the hard coded mixed order nonces above.
txs = txs
Expand Down

0 comments on commit 4bf485a

Please sign in to comment.