mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
FullPrunedBlockChain: fix a spelling error
This commit is contained in:
parent
f0b258b40d
commit
e0b50c374e
@ -100,13 +100,16 @@ public class FullPrunedBlockChain extends AbstractBlockChain {
|
|||||||
// TODO: execute in order of largest transaction (by input count) first
|
// TODO: execute in order of largest transaction (by input count) first
|
||||||
ExecutorService scriptVerificationExecutor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
|
ExecutorService scriptVerificationExecutor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
|
||||||
|
|
||||||
class Verifyer implements Callable<VerificationException> {
|
/** A job submitted to the executor which verifies signatures. */
|
||||||
|
private static class Verifier implements Callable<VerificationException> {
|
||||||
final Transaction tx;
|
final Transaction tx;
|
||||||
final List<Script> prevOutScripts;
|
final List<Script> prevOutScripts;
|
||||||
final boolean enforcePayToScriptHash;
|
final boolean enforcePayToScriptHash;
|
||||||
Verifyer(final Transaction tx, final List<Script> prevOutScripts, final boolean enforcePayToScriptHash) {
|
|
||||||
|
public Verifier(final Transaction tx, final List<Script> prevOutScripts, final boolean enforcePayToScriptHash) {
|
||||||
this.tx = tx; this.prevOutScripts = prevOutScripts; this.enforcePayToScriptHash = enforcePayToScriptHash;
|
this.tx = tx; this.prevOutScripts = prevOutScripts; this.enforcePayToScriptHash = enforcePayToScriptHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public VerificationException call() throws Exception {
|
public VerificationException call() throws Exception {
|
||||||
try{
|
try{
|
||||||
@ -217,7 +220,7 @@ public class FullPrunedBlockChain extends AbstractBlockChain {
|
|||||||
|
|
||||||
if (!isCoinBase) {
|
if (!isCoinBase) {
|
||||||
// Because correctlySpends modifies transactions, this must come after we are done with tx
|
// Because correctlySpends modifies transactions, this must come after we are done with tx
|
||||||
FutureTask<VerificationException> future = new FutureTask<VerificationException>(new Verifyer(tx, prevOutScripts, enforcePayToScriptHash));
|
FutureTask<VerificationException> future = new FutureTask<VerificationException>(new Verifier(tx, prevOutScripts, enforcePayToScriptHash));
|
||||||
scriptVerificationExecutor.execute(future);
|
scriptVerificationExecutor.execute(future);
|
||||||
listScriptVerificationResults.add(future);
|
listScriptVerificationResults.add(future);
|
||||||
}
|
}
|
||||||
@ -339,7 +342,7 @@ public class FullPrunedBlockChain extends AbstractBlockChain {
|
|||||||
|
|
||||||
if (!isCoinBase) {
|
if (!isCoinBase) {
|
||||||
// Because correctlySpends modifies transactions, this must come after we are done with tx
|
// Because correctlySpends modifies transactions, this must come after we are done with tx
|
||||||
FutureTask<VerificationException> future = new FutureTask<VerificationException>(new Verifyer(tx, prevOutScripts, enforcePayToScriptHash));
|
FutureTask<VerificationException> future = new FutureTask<VerificationException>(new Verifier(tx, prevOutScripts, enforcePayToScriptHash));
|
||||||
scriptVerificationExecutor.execute(future);
|
scriptVerificationExecutor.execute(future);
|
||||||
listScriptVerificationResults.add(future);
|
listScriptVerificationResults.add(future);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user