mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-09 20:39:14 +02:00
stratum: fix coinbase construction tests
The api for construct_coinbase_tx changed and now takes the extranonce 2 as a parameter instead of the length.
This commit is contained in:
parent
60ef52d923
commit
5d4733ec34
@ -7,8 +7,8 @@ TEST_CASE("Check coinbase tx construction", "[mining]")
|
||||
const char * coinbase_1 = "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff20020862062f503253482f04b8864e5008";
|
||||
const char * coinbase_2 = "072f736c7573682f000000000100f2052a010000001976a914d23fcdf86f7e756a64a7a9688ef9903327048ed988ac00000000";
|
||||
const char * extranonce = "e9695791";
|
||||
const int extranonce_2_len = 4;
|
||||
char * coinbase_tx = construct_coinbase_tx(coinbase_1, coinbase_2, extranonce, extranonce_2_len);
|
||||
const char * extranonce_2 = "99999999";
|
||||
char * coinbase_tx = construct_coinbase_tx(coinbase_1, coinbase_2, extranonce, extranonce_2);
|
||||
TEST_ASSERT_EQUAL_STRING(coinbase_tx, "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff20020862062f503253482f04b8864e5008e969579199999999072f736c7573682f000000000100f2052a010000001976a914d23fcdf86f7e756a64a7a9688ef9903327048ed988ac00000000");
|
||||
free(coinbase_tx);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user