MCPcopy Create free account
hub / github.com/LUX-Core/lux / CheckSenderScript

Function CheckSenderScript

src/main.cpp:7664–7670  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////// lux

Source from the content-addressed store, hash-verified

7662
7663/////////////////////////////////////////////////////////////////////// lux
7664bool 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
7672std::vector<ResultExecute> CallContract(const dev::Address& addrContract, std::vector<unsigned char> opcode, const dev::Address& sender, uint64_t gasLimit){
7673 CBlock block;

Callers 3

AcceptToMemoryPoolFunction · 0.85
AcceptableInputsFunction · 0.85
ConnectBlockFunction · 0.85

Calls 3

AccessCoinsMethod · 0.80
IsPayToPubkeyHashMethod · 0.80
IsPayToPubkeyMethod · 0.80

Tested by

no test coverage detected