From eda3ca932600535abe5e721fb821af71d0308e71 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 29 Oct 2016 14:33:53 -0300 Subject: [PATCH] test --- src/consensus/consensus.h | 2 +- src/komodo_utils.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h index d700666bc..7fc20d7fc 100644 --- a/src/consensus/consensus.h +++ b/src/consensus/consensus.h @@ -17,7 +17,7 @@ static const unsigned int MAX_BLOCK_SIGOPS = 20000; /** The maximum size of a transaction (network rule) */ static const unsigned int MAX_TX_SIZE = 100000; /** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */ -static const int COINBASE_MATURITY = 100; +int COINBASE_MATURITY = 100; /** Flags for LockTime() */ enum { diff --git a/src/komodo_utils.h b/src/komodo_utils.h index e8afc97c1..5691d74bb 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1252,7 +1252,7 @@ void komodo_configfile(char *symbol,uint16_t port) { if ( (fp= fopen(fname,"wb")) != 0 ) { - fprintf(fp,"rpcuser=user%u\nrpcpassword=pass%s\nrpcport=%u\nserver=1\ntxindex=1\nbind=127.0.0.1\n",crc,password,port); + fprintf(fp,"rpcuser=user%u\nrpcpassword=pass%s\nrpcport=%u\nserver=1\ntxindex=1\n\n",crc,password,port); fclose(fp); printf("Created (%s)\n",fname); } else printf("Couldnt create (%s)\n",fname); @@ -1315,7 +1315,12 @@ void komodo_args() } //fprintf(stderr,"Got datadir.(%s)\n",dirname); if ( ASSETCHAINS_SYMBOL[0] != 0 ) + { + extern int COINBASE_MATURITY; komodo_configfile(ASSETCHAINS_SYMBOL,ASSETCHAINS_PORT + 1); + if ( komodo_baseid(ASSETCHAINS_SYMBOL) >= 0 ) + COINBASE_MATURITY = 0; + } } else {