This commit is contained in:
jl777
2018-07-31 19:34:06 -11:00
parent d9cf43a556
commit 3f53fb0b5b
2 changed files with 4 additions and 6 deletions

View File

@@ -23,8 +23,8 @@
bool FSMValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx);
std::string FSMList(uint64_t txfee);
std::string FSMInfo(uint64_t txfee,uint256 fsmtxid);
std::string FSMList();
std::string FSMInfo(uint256 fsmtxid);
std::string FSMCreate(uint64_t txfee,std::string name,std::string states);
#endif

View File

@@ -146,7 +146,7 @@ uint64_t AddFSMInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPubKe
return(totalinputs);
}
std::string FSMList(uint64_t txfee)
std::string FSMList()
{
return(0);
}
@@ -171,12 +171,10 @@ std::string FSMCreate(uint64_t txfee,std::string name,std::string states)
return(0);
}
std::string FSMInfo(uint64_t txfee,uint256 fsmtxid)
std::string FSMInfo(uint256 fsmtxid)
{
CMutableTransaction mtx; CPubKey mypk,fsmpk; uint64_t funds = 0; CScript opret; struct CCcontract_info *cp,C;
cp = CCinit(&C,EVAL_FSM);
if ( txfee == 0 )
txfee = 10000;
mypk = pubkey2pk(Mypubkey());
fsmpk = GetUnspendable(cp,0);
if ( AddNormalinputs(mtx,mypk,txfee,64) > 0 )