Merge branch 'FSM' into jl777
This commit is contained in:
10
.gitignore
vendored
10
.gitignore
vendored
@@ -132,6 +132,11 @@ src/cc/rogue/rogue
|
||||
src/cc/rogue/rogue.so
|
||||
|
||||
src/cc/rogue/test.zip
|
||||
src/checkfile
|
||||
|
||||
src/foo.zip
|
||||
|
||||
src/log
|
||||
|
||||
src/rogue.530623577502174316.0
|
||||
|
||||
@@ -139,11 +144,6 @@ src/rogue.530623577502174316.pack
|
||||
|
||||
src/rogue.530623577502174316.player
|
||||
|
||||
src/checkfile
|
||||
|
||||
src/log
|
||||
|
||||
src/foo.zip
|
||||
|
||||
src/cc/rogue/config.h
|
||||
|
||||
|
||||
3
src/ac/ilien
Executable file
3
src/ac/ilien
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
./komodo-cli -ac_name=ILN $1 $2 $3 $4 $5 $6
|
||||
|
||||
@@ -46,4 +46,5 @@ echo $pubkey
|
||||
./komodod -pubkey=$pubkey -ac_name=ZEX -ac_cc=2 -ac_founders=1 -ac_halving=525600 -ac_reward=13000000000 -ac_pubkey=039d4a50cc70d1184e462a22edb3b66385da97cc8059196f8305c184a3e21440af -addnode=5.9.102.210 &
|
||||
./komodod -pubkey=$pubkey -ac_name=KSB -ac_supply=1000000000 -ac_end=1 -ac_public=1 -addnode=37.187.225.231 &
|
||||
./komodod -pubkey=$pubkey -ac_name=OUR -ac_reward=1478310502 -ac_halving=525600 -ac_cc=42 -ac_supply=100000000 -ac_perc=77700 -ac_staked=93 -ac_pubkey=02652a3f3e00b3a1875a918314f0bac838d6dd189a346fa623f5efe9541ac0b98c -ac_public=1 -addnode=51.255.195.65 -addnode=217.182.129.38 -addnode=37.187.225.231 &
|
||||
./komodod -pubkey=$pubkey -ac_name=ILN -ac_supply=10000000000 -ac_cc=2 -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 &
|
||||
|
||||
|
||||
3
src/fiat/ilien
Executable file
3
src/fiat/ilien
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
./komodo-cli -ac_name=ILN $1 $2 $3 $4 $5 $6
|
||||
|
||||
@@ -1623,7 +1623,7 @@ int32_t komodo_is_PoSblock(int32_t slowflag,int32_t height,CBlock *pblock,arith_
|
||||
fprintf(stderr,"ht.%d isPoS.%d utxo not validated -> must be PoW fake\n",height,isPoS);
|
||||
isPoS = 0;
|
||||
}
|
||||
else
|
||||
else if ( ASSETCHAINS_STAKED != 100 )
|
||||
{
|
||||
if ( bhash < POWTarget )
|
||||
{
|
||||
|
||||
@@ -5369,9 +5369,12 @@ UniValue CCaddress(struct CCcontract_info *cp,char *name,std::vector<unsigned ch
|
||||
result.push_back(Pair("result", "success"));
|
||||
sprintf(str,"%sCCAddress",name);
|
||||
result.push_back(Pair(str,cp->unspendableCCaddr));
|
||||
result.push_back(Pair("CCbalance",ValueFromAmount(CCaddress_balance(cp->unspendableCCaddr))));
|
||||
sprintf(str,"%sCCBalance",name);
|
||||
result.push_back(Pair(str,ValueFromAmount(CCaddress_balance(cp->unspendableCCaddr))));
|
||||
sprintf(str,"%sNormalAddress",name);
|
||||
result.push_back(Pair(str,cp->normaladdr));
|
||||
sprintf(str,"%sNormalBalance",name);
|
||||
result.push_back(Pair(str,ValueFromAmount(CCaddress_balance(cp->normaladdr))));
|
||||
if (strcmp(name,"Gateways")==0) result.push_back(Pair("GatewaysPubkey","03ea9c062b9652d8eff34879b504eda0717895d27597aaeb60347d65eed96ccb40"));
|
||||
if ((strcmp(name,"Channels")==0 || strcmp(name,"Heir")==0) && pubkey.size() == 33)
|
||||
{
|
||||
@@ -5393,25 +5396,22 @@ UniValue CCaddress(struct CCcontract_info *cp,char *name,std::vector<unsigned ch
|
||||
result.push_back(Pair(str,destaddr));
|
||||
}
|
||||
}
|
||||
//if ( Getscriptaddress(destaddr,(CScript() << Mypubkey() << OP_CHECKSIG)) != 0 )
|
||||
// result.push_back(Pair("myAddress",destaddr));
|
||||
if ( GetCCaddress(cp,destaddr,pubkey2pk(Mypubkey())) != 0 )
|
||||
{
|
||||
sprintf(str,"myCCAddress(%s)",name);
|
||||
result.push_back(Pair(str,destaddr));
|
||||
}
|
||||
if ( pubkey.size() == 33 )
|
||||
{
|
||||
if ( GetCCaddress(cp,destaddr,pubkey2pk(pubkey)) != 0 )
|
||||
{
|
||||
sprintf(str,"PubkeyCCaddress(%s)",name);
|
||||
result.push_back(Pair(str,destaddr));
|
||||
sprintf(str,"PubkeyCCbalance(%s)",name);
|
||||
result.push_back(Pair(str,ValueFromAmount(CCaddress_balance(destaddr))));
|
||||
}
|
||||
}
|
||||
if ( GetCCaddress(cp,destaddr,pubkey2pk(Mypubkey())) != 0 )
|
||||
{
|
||||
result.push_back(Pair("myCCaddress",destaddr));
|
||||
result.push_back(Pair("myCCbalance",ValueFromAmount(CCaddress_balance(destaddr))));
|
||||
sprintf(str,"myCCAddress(%s)",name);
|
||||
result.push_back(Pair(str,destaddr));
|
||||
sprintf(str,"myCCbalance(%s)",name);
|
||||
result.push_back(Pair(str,ValueFromAmount(CCaddress_balance(destaddr))));
|
||||
}
|
||||
if ( Getscriptaddress(destaddr,(CScript() << Mypubkey() << OP_CHECKSIG)) != 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user