MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetFuelFee

Method GetFuelFee

src/tx/tx.cpp:86–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86uint64_t CBaseTx::GetFuelFee(CCacheWrapper &cw, int32_t height, uint32_t fuelRate) {
87 return (fuel == 0 || fuelRate == 0) ? 0 : std::ceil(fuel / 100.0f) * fuelRate;
88}
89
90bool CBaseTx::CheckBaseTx(CTxExecuteContext &context) {
91 CValidationState &state = *context.pState;

Callers 8

ConnectBlockFunction · 0.45
BlockToJSONFunction · 0.45
luavm_executescriptFunction · 0.45
luavm_executecontractFunction · 0.45
GetPriorityTxFunction · 0.45
SetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected