Test
This commit is contained in:
@@ -386,8 +386,10 @@ int32_t rogue_playerdata(struct CCcontract_info *cp,uint256 &origplayergame,CPub
|
|||||||
{
|
{
|
||||||
memcpy(&highlander,script+2,sizeof(highlander));
|
memcpy(&highlander,script+2,sizeof(highlander));
|
||||||
//highlander = revuint256(highlander);
|
//highlander = revuint256(highlander);
|
||||||
fprintf(stderr,"got highlander.%s\n",highlander.ToString().c_str());
|
fprintf(stderr,"got vin.%s \n",playertx.vin[1].prevout.hash.ToString().c_str());
|
||||||
if ( rogue_iterateplayer(highlander,playertxid) == 0 )
|
// verify highlander is a valid gametxid, verify playertxid is linked to it
|
||||||
|
//if ( rogue_iterateplayer(highlander,playertx.vin[1].prevout.n,playertxid) == 0 )
|
||||||
|
if ( playertx.vin[1].prevout.hash == highlander )
|
||||||
{
|
{
|
||||||
if ( GetTransaction(highlander,highlandertx,hashBlock,false) != 0 && (numvouts= highlandertx.vout.size()) > 0 )
|
if ( GetTransaction(highlander,highlandertx,hashBlock,false) != 0 && (numvouts= highlandertx.vout.size()) > 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user