Skip to content

Commit 1dcc607

Browse files
committed
Enable test_getblocktemplate()
1 parent 50eb242 commit 1dcc607

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

integration_test/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ fn main() {
210210
test_get_net_totals(&cl);
211211
test_get_network_hash_ps(&cl);
212212
test_uptime(&cl);
213-
// Blackcoin TODO: test_getblocktemplate(&cl);
213+
test_getblocktemplate(&cl);
214214
// Blackcoin TODO: test_unloadwallet(&cl);
215215
// Blackcoin TODO: test_loadwallet(&cl);
216216
// Blackcoin TODO: test_backupwallet(&cl);
@@ -1305,7 +1305,8 @@ fn test_getblocktemplate(cl: &Client) {
13051305
// be tested.
13061306
cl.send_to_address(&RANDOM_ADDRESS, btc(1), None, None, None, /* None, None, None */).unwrap();
13071307

1308-
cl.get_block_template(GetBlockTemplateModes::Template, &[GetBlockTemplateRules::SegWit], &[])
1308+
// Blackcoin ToDo: change GetBlockTemplateRules::Csv to GetBlockTemplateRules::SegWit after SegWit activation
1309+
cl.get_block_template(GetBlockTemplateModes::Template, &[GetBlockTemplateRules::Csv], &[])
13091310
.unwrap();
13101311

13111312
// cleanup mempool transaction

json/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,9 +1610,12 @@ pub struct GetBlockTemplateResult {
16101610
/// Block size limit
16111611
#[serde(rename = "sizelimit")]
16121612
pub size_limit: u32,
1613+
// Blackcoin ToDo: enable after SegWit activation
1614+
/*
16131615
/// Block weight limit
16141616
#[serde(rename = "weightlimit")]
16151617
pub weight_limit: u32,
1618+
*/
16161619
/// Block header version
16171620
pub version: u32,
16181621
/// Block rules that are to be enforced

0 commit comments

Comments
 (0)