Merge branch 'FSM' into jl777
This commit is contained in:
2
src/ac/vote2019
Executable file
2
src/ac/vote2019
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
./komodo-cli -ac_name=VOTE2019 $1 $2 $3 $4 $5 $6
|
||||||
@@ -257,5 +257,11 @@
|
|||||||
"ac_reward": "100000000",
|
"ac_reward": "100000000",
|
||||||
"ac_cc": "3",
|
"ac_cc": "3",
|
||||||
"addnode": ["138.201.136.145"]
|
"addnode": ["138.201.136.145"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ac_name": "VOTE2019",
|
||||||
|
"ac_supply": "123651638",
|
||||||
|
"ac_public": "1",
|
||||||
|
"addnode": ["95.213.238.98"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -49,3 +49,4 @@ echo $pubkey
|
|||||||
./komodod -pubkey=$pubkey -ac_name=ILN -ac_supply=10000000000 -ac_cc=2 -addressindex=1 -spentindex=1 -addnode=51.75.122.83 &
|
./komodod -pubkey=$pubkey -ac_name=ILN -ac_supply=10000000000 -ac_cc=2 -addressindex=1 -spentindex=1 -addnode=51.75.122.83 &
|
||||||
./komodod -pubkey=$pubkey -ac_name=RICK -ac_supply=90000000000 -ac_reward=100000000 -ac_cc=3 -addnode=138.201.136.145 &
|
./komodod -pubkey=$pubkey -ac_name=RICK -ac_supply=90000000000 -ac_reward=100000000 -ac_cc=3 -addnode=138.201.136.145 &
|
||||||
./komodod -pubkey=$pubkey -ac_name=MORTY -ac_supply=90000000000 -ac_reward=100000000 -ac_cc=3 -addnode=138.201.136.145 &
|
./komodod -pubkey=$pubkey -ac_name=MORTY -ac_supply=90000000000 -ac_reward=100000000 -ac_cc=3 -addnode=138.201.136.145 &
|
||||||
|
./komodod -pubkey=$pubkey -ac_name=VOTE2019 -ac_supply=123651638 -ac_public=1 -addnode=95.213.238.98 &
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ int64_t OracleCurrentDatafee(uint256 reforacletxid,char *markeraddr,CPubKey publ
|
|||||||
{
|
{
|
||||||
uint256 txid,oracletxid,hashBlock; int64_t datafee=0,dfee; int32_t dheight=0,vout,height,numvouts; CTransaction tx; CPubKey pk;
|
uint256 txid,oracletxid,hashBlock; int64_t datafee=0,dfee; int32_t dheight=0,vout,height,numvouts; CTransaction tx; CPubKey pk;
|
||||||
std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> > unspentOutputs;
|
std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> > unspentOutputs;
|
||||||
SetCCunspents(unspentOutputs,markeraddr,true);
|
SetCCunspents(unspentOutputs,markeraddr,false);
|
||||||
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
||||||
{
|
{
|
||||||
txid = it->first.txhash;
|
txid = it->first.txhash;
|
||||||
@@ -306,7 +306,7 @@ uint256 OraclesBatontxid(uint256 reforacletxid,CPubKey refpk)
|
|||||||
batontxid = zeroid;
|
batontxid = zeroid;
|
||||||
cp = CCinit(&C,EVAL_ORACLES);
|
cp = CCinit(&C,EVAL_ORACLES);
|
||||||
CCtxidaddr(markeraddr,reforacletxid);
|
CCtxidaddr(markeraddr,reforacletxid);
|
||||||
SetCCunspents(unspentOutputs,markeraddr,true);
|
SetCCunspents(unspentOutputs,markeraddr,false);
|
||||||
//char str[67]; fprintf(stderr,"markeraddr.(%s) %s\n",markeraddr,pubkey33_str(str,(uint8_t *)&refpk));
|
//char str[67]; fprintf(stderr,"markeraddr.(%s) %s\n",markeraddr,pubkey33_str(str,(uint8_t *)&refpk));
|
||||||
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
||||||
{
|
{
|
||||||
@@ -532,7 +532,7 @@ int32_t oracleprice_add(std::vector<struct oracleprice_info> &publishers,CPubKey
|
|||||||
if ( format[0] != 'L' )
|
if ( format[0] != 'L' )
|
||||||
return(0);
|
return(0);
|
||||||
cp = CCinit(&C,EVAL_ORACLES);
|
cp = CCinit(&C,EVAL_ORACLES);
|
||||||
SetCCunspents(unspentOutputs,markeraddr,true);
|
SetCCunspents(unspentOutputs,markeraddr,false);
|
||||||
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
||||||
{
|
{
|
||||||
txid = it->first.txhash;
|
txid = it->first.txhash;
|
||||||
@@ -992,7 +992,7 @@ UniValue OracleInfo(uint256 origtxid)
|
|||||||
result.push_back(Pair("description",description));
|
result.push_back(Pair("description",description));
|
||||||
result.push_back(Pair("format",format));
|
result.push_back(Pair("format",format));
|
||||||
result.push_back(Pair("marker",markeraddr));
|
result.push_back(Pair("marker",markeraddr));
|
||||||
SetCCunspents(unspentOutputs,markeraddr,true);
|
SetCCunspents(unspentOutputs,markeraddr,false);
|
||||||
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
||||||
{
|
{
|
||||||
txid = it->first.txhash;
|
txid = it->first.txhash;
|
||||||
|
|||||||
2
src/fiat/vote2019
Executable file
2
src/fiat/vote2019
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
./komodo-cli -ac_name=VOTE2019 $1 $2 $3 $4 $5 $6
|
||||||
Reference in New Issue
Block a user