test
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
source pubkey.txt
|
source pubkey.txt
|
||||||
echo $pubkey
|
echo $pubkey
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
./komodo-cli paxdeposit $1 0.01 aud
|
./komodo-cli paxdeposit $1 0.01 aud
|
||||||
./komodo-cli paxdeposit $1 0.01 bgn
|
./komodo-cli paxdeposit $1 0.01 bgn
|
||||||
./komodo-cli paxdeposit $1 0.01 cad
|
./komodo-cli paxdeposit $1 0.01 cad
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
echo aud; fiat/aud $1 $2 $3 $4
|
echo aud; fiat/aud $1 $2 $3 $4
|
||||||
echo bgn; fiat/bgn $1 $2 $3 $4
|
echo bgn; fiat/bgn $1 $2 $3 $4
|
||||||
echo cad; fiat/cad $1 $2 $3 $4
|
echo cad; fiat/cad $1 $2 $3 $4
|
||||||
|
|||||||
@@ -527,7 +527,6 @@ int8_t komodo_minerid(int32_t height)
|
|||||||
return(i);
|
return(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//printf("minderid not notary ht.%d\n",height);
|
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define ASSETCHAINS_MINHEIGHT 100
|
#define ASSETCHAINS_MINHEIGHT 100
|
||||||
#define ROUNDROBIN_DELAY 59
|
#define ROUNDROBIN_DELAY 58
|
||||||
extern int32_t ASSETCHAINS_SEED,IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAIN_INIT,KOMODO_INITDONE,KOMODO_ON_DEMAND,KOMODO_INITDONE;
|
extern int32_t ASSETCHAINS_SEED,IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAIN_INIT,KOMODO_INITDONE,KOMODO_ON_DEMAND,KOMODO_INITDONE;
|
||||||
extern char ASSETCHAINS_SYMBOL[16];
|
extern char ASSETCHAINS_SYMBOL[16];
|
||||||
extern std::string NOTARY_PUBKEY;
|
extern std::string NOTARY_PUBKEY;
|
||||||
@@ -717,6 +717,7 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
for (i=0; i<32; i++)
|
for (i=0; i<32; i++)
|
||||||
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
||||||
fprintf(stderr," <- %s Block found %d\n",ASSETCHAINS_SYMBOL,Mining_height);
|
fprintf(stderr," <- %s Block found %d\n",ASSETCHAINS_SYMBOL,Mining_height);
|
||||||
|
sleep(60); // avoid mining forks
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (EhSolverCancelledException&) {
|
} catch (EhSolverCancelledException&) {
|
||||||
|
|||||||
@@ -412,12 +412,20 @@ Value minerids(const Array& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
for (i=0; i<64; i++)
|
for (i=0; i<64; i++)
|
||||||
{
|
{
|
||||||
Object item; std::string hex; char *hexstr;
|
Object item; std::string hex,kmdaddress; char *hexstr,kmdaddr[64],*ptr; int32_t m;
|
||||||
hex.resize(66);
|
hex.resize(66);
|
||||||
hexstr = (char *)hex.data();
|
hexstr = (char *)hex.data();
|
||||||
for (j=0; j<33; j++)
|
for (j=0; j<33; j++)
|
||||||
sprintf(&hexstr[j*2],"%02x",pubkeys[i][j]);
|
sprintf(&hexstr[j*2],"%02x",pubkeys[i][j]);
|
||||||
item.push_back(Pair("notaryid", i));
|
item.push_back(Pair("notaryid", i));
|
||||||
|
|
||||||
|
bitcoin_address(kmdaddr,60,pubkeys[i],33);
|
||||||
|
m = (int32_t)strlen(kmdaddr);
|
||||||
|
kmdaddress.resize(m);
|
||||||
|
ptr = (char *)kmdaddress.data();
|
||||||
|
memcpy(ptr,kmdaddr,m);
|
||||||
|
item.push_back(Pair("KMDaddress", kmdaddress));
|
||||||
|
|
||||||
item.push_back(Pair("pubkey", hex));
|
item.push_back(Pair("pubkey", hex));
|
||||||
item.push_back(Pair("blocks", tally[i]));
|
item.push_back(Pair("blocks", tally[i]));
|
||||||
a.push_back(item);
|
a.push_back(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user