Java Code Examples for org.bitcoinj.script.Script#getSigOpCount()
The following examples show how to use
org.bitcoinj.script.Script#getSigOpCount() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Transaction.java From bcm-android with GNU General Public License v3.0 | 5 votes |
/** * Gets the count of regular SigOps in this transactions */ public int getSigOpCount() throws ScriptException { int sigOps = 0; for (TransactionInput input : inputs) sigOps += Script.getSigOpCount(input.getScriptBytes()); for (TransactionOutput output : outputs) sigOps += Script.getSigOpCount(output.getScriptBytes()); return sigOps; }
Example 2
Source File: Transaction.java From green_android with GNU General Public License v3.0 | 5 votes |
/** * Gets the count of regular SigOps in this transactions */ public int getSigOpCount() throws ScriptException { int sigOps = 0; for (TransactionInput input : inputs) sigOps += Script.getSigOpCount(input.getScriptBytes()); for (TransactionOutput output : outputs) sigOps += Script.getSigOpCount(output.getScriptBytes()); return sigOps; }
Example 3
Source File: Transaction.java From GreenBits with GNU General Public License v3.0 | 5 votes |
/** * Gets the count of regular SigOps in this transactions */ public int getSigOpCount() throws ScriptException { int sigOps = 0; for (TransactionInput input : inputs) sigOps += Script.getSigOpCount(input.getScriptBytes()); for (TransactionOutput output : outputs) sigOps += Script.getSigOpCount(output.getScriptBytes()); return sigOps; }