Changeset View
Changeset View
Standalone View
Standalone View
src/test/miner_tests.cpp
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | static struct { | ||||
{1, 0x70de86a8}, {1, 0x74d64cd5}, {1, 0x49e738a1}, {2, 0x6910b602}, | {1, 0x70de86a8}, {1, 0x74d64cd5}, {1, 0x49e738a1}, {2, 0x6910b602}, | ||||
{0, 0x643c565f}, {1, 0x54264b3f}, {2, 0x97ea6396}, {2, 0x55174459}, | {0, 0x643c565f}, {1, 0x54264b3f}, {2, 0x97ea6396}, {2, 0x55174459}, | ||||
{2, 0x03e8779a}, {1, 0x98f34d8f}, {1, 0xc07b2b07}, {1, 0xdfe29668}, | {2, 0x03e8779a}, {1, 0x98f34d8f}, {1, 0xc07b2b07}, {1, 0xdfe29668}, | ||||
{1, 0x3141c7c1}, {1, 0xb3b595f4}, {1, 0x735abf08}, {5, 0x623bfbce}, | {1, 0x3141c7c1}, {1, 0xb3b595f4}, {1, 0x735abf08}, {5, 0x623bfbce}, | ||||
{2, 0xd351e722}, {1, 0xf4ca48c9}, {1, 0x5b19c670}, {1, 0xa164bf0e}, | {2, 0xd351e722}, {1, 0xf4ca48c9}, {1, 0x5b19c670}, {1, 0xa164bf0e}, | ||||
{2, 0xbbbeb305}, {2, 0xfe1c810a}, | {2, 0xbbbeb305}, {2, 0xfe1c810a}, | ||||
}; | }; | ||||
static CBlockIndex CreateBlockIndex(int nHeight) { | static CBlockIndex CreateBlockIndex(int nHeight) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | |||||
CBlockIndex index; | CBlockIndex index; | ||||
index.nHeight = nHeight; | index.nHeight = nHeight; | ||||
index.pprev = ::ChainActive().Tip(); | index.pprev = ::ChainActive().Tip(); | ||||
return index; | return index; | ||||
} | } | ||||
static bool TestSequenceLocks(const CTransaction &tx, int flags) | static bool TestSequenceLocks(const CTransaction &tx, int flags) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | ||||
▲ Show 20 Lines • Show All 641 Lines • Show Last 20 Lines |