mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
Script: don't query the clock when parsing a script. This actually shows up in Android performance profiles.
This commit is contained in:
parent
596d6f9d88
commit
8c414fb172
@ -101,7 +101,7 @@ public class Script {
|
|||||||
public Script(byte[] programBytes) throws ScriptException {
|
public Script(byte[] programBytes) throws ScriptException {
|
||||||
program = programBytes;
|
program = programBytes;
|
||||||
parse(programBytes);
|
parse(programBytes);
|
||||||
creationTimeSeconds = Utils.currentTimeSeconds();
|
creationTimeSeconds = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Script(byte[] programBytes, long creationTimeSeconds) throws ScriptException {
|
public Script(byte[] programBytes, long creationTimeSeconds) throws ScriptException {
|
||||||
|
Loading…
Reference in New Issue
Block a user