public async Task SubmitTransactionInputScriptSize() { var(txHex, tx, prevOuts) = await CreateNewConsolidationTx("inputScriptSize"); Assert.IsFalse(Mapi.IsConsolidationTxn(tx, consolidationParameters, prevOuts)); var payload = await SubmitTransaction(txHex); Assert.AreEqual("failure", payload.ReturnResult); Assert.AreEqual("Not enough fees", payload.ResultDescription); }
public async Task SubmitTransactionValid() { var(txHex, tx, prevOuts) = await CreateNewConsolidationTx(); Assert.IsTrue(Mapi.IsConsolidationTxn(tx, consolidationParameters, prevOuts)); var payload = await SubmitTransaction(txHex); Assert.AreEqual("success", payload.ReturnResult); // Try to fetch tx from the node var txFromNode = await rpcClient0.GetRawTransactionAsBytesAsync(tx.GetHash().ToString()); Assert.AreEqual(txHex, HelperTools.ByteToHexString(txFromNode)); }