Merge branch 'blackjok3r' into HFtest
merge fix
This commit is contained in:
@@ -76,7 +76,7 @@ bool CheckTxAuthority(const CTransaction &tx, CrosschainAuthority auth)
|
|||||||
const CrosschainAuthority auth_STAKED = [&](){
|
const CrosschainAuthority auth_STAKED = [&](){
|
||||||
CrosschainAuthority auth;
|
CrosschainAuthority auth;
|
||||||
auth.size = (int32_t)(sizeof(notaries_STAKEDcc)/sizeof(*notaries_STAKEDcc));
|
auth.size = (int32_t)(sizeof(notaries_STAKEDcc)/sizeof(*notaries_STAKEDcc));
|
||||||
auth.requiredSigs = (auth.size/5);
|
auth.requiredSigs = 3;
|
||||||
for (int n=0; n<auth.size; n++)
|
for (int n=0; n<auth.size; n++)
|
||||||
for (size_t i=0; i<33; i++)
|
for (size_t i=0; i<33; i++)
|
||||||
sscanf(notaries_STAKEDcc[n][1]+(i*2), "%2hhx", auth.notaries[n]+i);
|
sscanf(notaries_STAKEDcc[n][1]+(i*2), "%2hhx", auth.notaries[n]+i);
|
||||||
|
|||||||
@@ -756,7 +756,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
|
|||||||
printf("ISRATIFICATION (%s)\n",(char *)&scriptbuf[len+32*2+4]);
|
printf("ISRATIFICATION (%s)\n",(char *)&scriptbuf[len+32*2+4]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( *isratificationp == 0 && (signedmask != 0 || (scriptbuf[len] != 'X' && scriptbuf[len] != 'A')) ) // && scriptbuf[len] != 'I')
|
if ( *isratificationp == 0 && (signedmask != 0 || (scriptbuf[len] != 'X' && scriptbuf[len] != 'A')) ) // && scriptbuf[len] != 'I')
|
||||||
komodo_stateupdate(height,0,0,0,txhash,0,0,0,0,0,0,value,&scriptbuf[len],opretlen,j,zero,0);
|
komodo_stateupdate(height,0,0,0,txhash,0,0,0,0,0,0,value,&scriptbuf[len],opretlen,j,zero,0);
|
||||||
}
|
}
|
||||||
@@ -856,7 +856,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
numvalid = bitweight(signedmask);
|
numvalid = bitweight(signedmask);
|
||||||
if ( (((height < 90000 || (signedmask & 1) != 0) && numvalid >= KOMODO_MINRATIFY) ||
|
if ( (((height < 90000 || (signedmask & 1) != 0) && numvalid >= KOMODO_MINRATIFY) ||
|
||||||
(numvalid >= KOMODO_MINRATIFY && ASSETCHAINS_SYMBOL[0] != 0) ||
|
(numvalid >= KOMODO_MINRATIFY && ASSETCHAINS_SYMBOL[0] != 0) ||
|
||||||
numvalid > (numnotaries/5)) )
|
numvalid > (numnotaries/5)) ||
|
||||||
|
( (strncmp(ASSETCHAINS_SYMBOL, "STKD", 4) == 0) || (strncmp(ASSETCHAINS_SYMBOL, "STAKED", 6) == 0) ) && numvalid > 3 )
|
||||||
{
|
{
|
||||||
if ( ASSETCHAINS_SYMBOL[0] != 0 )
|
if ( ASSETCHAINS_SYMBOL[0] != 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestam
|
|||||||
{
|
{
|
||||||
if ( did1 == 0 )
|
if ( did1 == 0 )
|
||||||
{
|
{
|
||||||
if ( (strlen(ASSETCHAINS_SYMBOL) >= 4 && strncmp(ASSETCHAINS_SYMBOL, "STKD", 4) == 0) || (strlen(ASSETCHAINS_SYMBOL) >= 6 && strncmp(ASSETCHAINS_SYMBOL, "STAKED", 6) == 0) )
|
if ( (strncmp(ASSETCHAINS_SYMBOL, "STKD", 4) == 0) || (strncmp(ASSETCHAINS_SYMBOL, "STAKED", 6) == 0) )
|
||||||
{
|
{
|
||||||
n1 = (int32_t)(sizeof(notaries_STAKED)/sizeof(*notaries_STAKED));
|
n1 = (int32_t)(sizeof(notaries_STAKED)/sizeof(*notaries_STAKED));
|
||||||
for (i=0; i<n1; i++)
|
for (i=0; i<n1; i++)
|
||||||
|
|||||||
1128
src/main.cpp
1128
src/main.cpp
File diff suppressed because it is too large
Load Diff
@@ -18,7 +18,8 @@ static const int INIT_PROTO_VERSION = 209;
|
|||||||
static const int GETHEADERS_VERSION = 31800;
|
static const int GETHEADERS_VERSION = 31800;
|
||||||
|
|
||||||
//! disconnect from peers older than this proto version
|
//! disconnect from peers older than this proto version
|
||||||
static const int MIN_PEER_PROTO_VERSION = 170004;
|
static const int MIN_PEER_PROTO_VERSION = 170002;
|
||||||
|
static const int STAKEDMIN_PEER_PROTO_VERSION = 170004;
|
||||||
|
|
||||||
//! nTime field added to CAddress, starting with this version;
|
//! nTime field added to CAddress, starting with this version;
|
||||||
//! if possible, avoid requesting addresses nodes older than this
|
//! if possible, avoid requesting addresses nodes older than this
|
||||||
|
|||||||
Reference in New Issue
Block a user