Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 |
using System.Collections.Generic; |
|
2 |
using Libplanet.Action; |
|
3 |
using Libplanet.Blocks; |
|
4 |
using Libplanet.Tests.Common.Action; |
|
5 |
using Libplanet.Tests.Tx; |
|
6 |
using Libplanet.Tx; |
|
7 |
|
|
8 |
namespace Libplanet.Tests.Blocks |
|
9 |
{
|
|
10 |
public class BlockFixture |
|
11 |
{
|
|
12 | 1 |
public BlockFixture() |
13 | 1 |
{
|
14 | 1 |
Genesis = TestUtils.MineGenesis<PolymorphicAction<BaseAction>>(); |
15 | 1 |
TxFixture = new TxFixture(Genesis.Hash); |
16 | 1 |
Next = TestUtils.MineNext( |
17 | 1 |
Genesis, |
18 | 1 |
nonce: new byte[] { 0x02, 0x00, 0x00, 0x00 } |
19 | 1 |
);
|
20 | 1 |
byte[] hasTxNonce = |
21 | 1 |
{
|
22 | 1 |
0x5c, 0x77, 0x74, 0xc2, 0x39, 0x69, 0x37, 0x51, 0x87, 0xa5, |
23 | 1 |
};
|
24 | 1 |
HasTx = TestUtils.MineNext( |
25 | 1 |
Next, |
26 | 1 |
new List<Transaction<PolymorphicAction<BaseAction>>> |
27 | 1 |
{
|
28 | 1 |
TxFixture.TxWithActions, |
29 | 1 |
},
|
30 | 1 |
hasTxNonce
|
31 | 1 |
);
|
32 | 1 |
}
|
33 |
|
|
34 | 1 |
internal TxFixture TxFixture { get; } |
35 |
|
|
36 | 1 |
internal Block<PolymorphicAction<BaseAction>> Genesis { get; } |
37 |
|
|
38 | 1 |
internal Block<PolymorphicAction<BaseAction>> Next { get; } |
39 |
|
|
40 | 1 |
internal Block<PolymorphicAction<BaseAction>> HasTx { get; } |
41 |
}
|
|
42 |
}
|
Read our documentation on viewing source code .