Test
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "gamescc.h"
|
||||
|
||||
/*
|
||||
./c cclib rng 17 \"[%229433dc3749aece1bd568f374a45da3b0bc6856990d7da3cd175399577940a775%22,250]\"
|
||||
@@ -229,7 +230,7 @@ void komodo_netevent(std::vector<uint8_t> message)
|
||||
{
|
||||
for (i=0; i<payload.size(); i++)
|
||||
fprintf(stderr,"%02x",payload[i]);
|
||||
fprintf(stderr," payload, got pk.%s siglen.%d\n",pubkey_str(str,pk),(int32_t)sig.size());
|
||||
fprintf(stderr," payload, got pk.%s siglen.%d\n",pubkey33_str(str,pk),(int32_t)sig.size());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#ifndef H_GAMESCC_H
|
||||
#define H_GAMESCC_H
|
||||
|
||||
#define ENABLE_WALLET
|
||||
#include "CCinclude.h"
|
||||
|
||||
@@ -51,3 +54,5 @@ if ( cp->evalcode == EVAL_GAMES ) \
|
||||
return(result); \
|
||||
} \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -819,7 +819,7 @@ UniValue PaymentsInfo(struct CCcontract_info *cp,char *jsonstr)
|
||||
UniValue PaymentsList(struct CCcontract_info *cp,char *jsonstr)
|
||||
{
|
||||
std::vector<std::pair<CAddressIndexKey, CAmount> > addressIndex; uint256 txid,hashBlock;
|
||||
UniValue result(UniValue::VOBJ),a(UniValue::VARR); char markeraddr[64],str[65]; CPubKey Paymentspk; CTransaction tx; int32_t lockedblocks,minrelease,totalallocations; std::vector<uint256> txidoprets;
|
||||
UniValue result(UniValue::VOBJ),a(UniValue::VARR); char markeraddr[64],str[65]; CPubKey Paymentspk; CTransaction tx; int32_t lockedblocks,minrelease; std::vector<uint256> txidoprets; int64_t totalallocations;
|
||||
Paymentspk = GetUnspendable(cp,0);
|
||||
GetCCaddress1of2(cp,markeraddr,Paymentspk,Paymentspk);
|
||||
SetCCtxids(addressIndex,markeraddr);
|
||||
|
||||
Reference in New Issue
Block a user