Komod-tx functions

This commit is contained in:
jl777
2018-12-29 01:37:53 -11:00
parent cd1dc554ba
commit c10c7d3309
2 changed files with 32 additions and 1 deletions

View File

@@ -429,6 +429,12 @@ int64_t AddChannelsInputs(struct CCcontract_info *cp,CMutableTransaction &mtx, C
else return 0;
}
int32_t komodo_nextheight()
{
return(100000000);
}
std::string ChannelOpen(uint64_t txfee,CPubKey destpub,int32_t numpayments,int64_t payment)
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction(Params().GetConsensus(), komodo_nextheight());
@@ -811,4 +817,4 @@ UniValue ChannelsInfo(uint256 channeltxid)
result.push_back(Pair("Error","Channel not found!"));
}
return(result);
}
}