This commit is contained in:
jl777
2016-10-18 19:47:48 -03:00
parent 254debb628
commit 7c11831e04

View File

@@ -243,6 +243,7 @@ Value getrawtransaction(const Array& params, bool fHelp)
char *komodo_getspendscript(uint256 hash,int32_t n)
{
CTransaction tx; uint256 hashBlock;
LOCK(cs_main);
if ( GetTransaction(hash,tx,hashBlock,true) != 0 )
{
if ( n >= 0 && n < tx.vout.size() )