Browse Source

test

acspeed
jl777 8 years ago
parent
commit
d780aa21f7
  1. 2
      iguana/dPoW.h
  2. 2
      iguana/dpow/dpow_tx.c

2
iguana/dPoW.h

@ -19,7 +19,7 @@
#define DPOW_FIRSTRATIFY 1000
#define DPOW_CHECKPOINTFREQ 10
#define DPOW_MINSIGS 19 //((height < 90000) ? 7 : 11)
#define DPOW_MINSIGS 2 //((height < 90000) ? 7 : 11)
//#define DPOW_M(bp) ((bp)->minsigs) // (((bp)->numnotaries >> 1) + 1)
#define DPOW_MODIND(bp,offset) (((((bp)->height / DPOW_CHECKPOINTFREQ) % (bp)->numnotaries) + (offset)) % (bp)->numnotaries)
#define DPOW_VERSION 0x0769

2
iguana/dpow/dpow_tx.c

@ -414,7 +414,7 @@ void dpow_rawtxsign(struct supernet_info *myinfo,struct dpow_info *dp,struct igu
valid = 0;
if ( dp->ratifying != 0 && j == 0 )
valid = 1;
else if ( (pubstr= jstr(vinitem,"scriptPubkey")) != 0 && is_hexstr(pubstr,0) == 66 )
else if ( (pubstr= jstr(vinitem,"scriptPubKey")) != 0 && is_hexstr(pubstr,0) == 66 )
{
decode_hex(pubkey33,33,&pubstr[1]);
if ( memcmp(pubkey33,dp->minerkey33,33) == 0 )

Loading…
Cancel
Save