Test
This commit is contained in:
@@ -258,7 +258,8 @@ CMutableTransaction CreateAsset(CPubKey pk,uint64_t assetsupply,uint256 utxotxid
|
|||||||
if ( ProduceSignature(TransactionSignatureCreator(&keystore,&txNewConst,0,nValue,SIGHASH_ALL),vintx.vout[utxovout].scriptPubKey,sigdata,consensusBranchId) != 0 )
|
if ( ProduceSignature(TransactionSignatureCreator(&keystore,&txNewConst,0,nValue,SIGHASH_ALL),vintx.vout[utxovout].scriptPubKey,sigdata,consensusBranchId) != 0 )
|
||||||
{
|
{
|
||||||
UpdateTransaction(mtx,0,sigdata);
|
UpdateTransaction(mtx,0,sigdata);
|
||||||
fprintf(stderr,"signed CreateAsset (%s -> %s)\n",name.c_str(),description.c_str());
|
string strHex = EncodeHexTx(mtx);
|
||||||
|
fprintf(stderr,"signed CreateAsset (%s -> %s) %s\n",name.c_str(),description.c_str(),strHex.ToStrin().c_str());
|
||||||
} else fprintf(stderr,"signing error for CreateAsset\n");
|
} else fprintf(stderr,"signing error for CreateAsset\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user