@Before public void setUp() throws Exception { BriefLogFormatter.init(); params = new UnitTestParams() { @Override public int getInterval() { return 10000; } }; context = new Context(params); }
@Before public void setup() { BriefLogFormatter.init(); DeterministicSeed seed = new DeterministicSeed(ENTROPY, "", 0); masterKey = HDKeyDerivation.createMasterPrivateKey(seed.getSeedBytes()); DeterministicHierarchy hierarchy = new DeterministicHierarchy(masterKey); DeterministicKey rootKey = hierarchy.get(ImmutableList.of(ChildNumber.ZERO_HARDENED), false, true); chain = new SimpleHDKeyChain(rootKey); chain.setLookaheadSize(10); }
@Before public void setUp() throws Exception { BriefLogFormatter.initVerbose(); Context ctx = new Context(params); myWatchedKey = new ECKey(); myWallet = new Wallet(params); myKey = new ECKey(); myKey.setCreationTimeSeconds(123456789L); myWallet.importKey(myKey); myAddress = myKey.toAddress(params); myWallet = new Wallet(params); myWallet.importKey(myKey); mScriptCreationTime = new Date().getTime() / 1000 - 1234; myWallet.addWatchedAddress(myWatchedKey.toAddress(params), mScriptCreationTime); myWallet.setDescription(WALLET_DESCRIPTION); }