Dont decode keystrokes
This commit is contained in:
@@ -366,9 +366,10 @@ int32_t rogue_findbaton(struct CCcontract_info *cp,char **keystrokesp,int32_t &n
|
|||||||
uint256 g,b; CPubKey p; std::vector<uint8_t> k;
|
uint256 g,b; CPubKey p; std::vector<uint8_t> k;
|
||||||
if ( rogue_keystrokesopretdecode(g,b,p,k,spenttx.vout[1].scriptPubKey) == 'K' )
|
if ( rogue_keystrokesopretdecode(g,b,p,k,spenttx.vout[1].scriptPubKey) == 'K' )
|
||||||
{
|
{
|
||||||
keystrokes = (char *)realloc(keystrokes,numkeys + (int32_t)k.size()/2);
|
keystrokes = (char *)realloc(keystrokes,numkeys + (int32_t)k.size());
|
||||||
decode_hex((uint8_t *)&keystrokes[numkeys],(int32_t)k.size()/2,(char *)&k[0]);
|
for (i=0; i<k.size(); i++)
|
||||||
numkeys += (int32_t)k.size()/2;
|
keystrokes[numkeys+i] = (char)k[i];
|
||||||
|
numkeys += (int32_t)k.size();
|
||||||
(*keystrokesp) = keystrokes;
|
(*keystrokesp) = keystrokes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user