From 3f53fb0b5b9a85bb8ef1a4d1b0b50b73af8db4b1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 19:34:06 -1100 Subject: [PATCH] Test --- src/cc/CCfsm.h | 4 ++-- src/cc/fsm.cpp | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/cc/CCfsm.h b/src/cc/CCfsm.h index 7e6056d2e..c6ea17024 100644 --- a/src/cc/CCfsm.h +++ b/src/cc/CCfsm.h @@ -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 diff --git a/src/cc/fsm.cpp b/src/cc/fsm.cpp index 2f7c0629a..d3bfe0caf 100644 --- a/src/cc/fsm.cpp +++ b/src/cc/fsm.cpp @@ -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 )