////////////////////////////////////////////////////////////////// lux
| 7662 | |
| 7663 | /////////////////////////////////////////////////////////////////////// lux |
| 7664 | bool CheckSenderScript(const CCoinsViewCache& view, const CTransaction& tx) { |
| 7665 | CScript script = view.AccessCoins(tx.vin[0].prevout.hash)->vout[tx.vin[0].prevout.n].scriptPubKey; |
| 7666 | if(!script.IsPayToPubkeyHash() && !script.IsPayToPubkey()){ |
| 7667 | return false; |
| 7668 | } |
| 7669 | return true; |
| 7670 | } |
| 7671 | |
| 7672 | std::vector<ResultExecute> CallContract(const dev::Address& addrContract, std::vector<unsigned char> opcode, const dev::Address& sender, uint64_t gasLimit){ |
| 7673 | CBlock block; |
no test coverage detected