mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 18:55:52 +00:00
Initialize context in BlockTest and CoinbaseBlockTest.
This commit is contained in:
parent
5068271586
commit
b7f1d72b60
File diff suppressed because one or more lines are too long
@ -19,6 +19,7 @@ package org.bitcoinj.core;
|
|||||||
import org.bitcoinj.core.AbstractBlockChain.NewBlockType;
|
import org.bitcoinj.core.AbstractBlockChain.NewBlockType;
|
||||||
import org.bitcoinj.core.Wallet.BalanceType;
|
import org.bitcoinj.core.Wallet.BalanceType;
|
||||||
import org.bitcoinj.params.MainNetParams;
|
import org.bitcoinj.params.MainNetParams;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
@ -44,6 +45,11 @@ public class CoinbaseBlockTest {
|
|||||||
private static final long BLOCK_NONCE = 3973947400L;
|
private static final long BLOCK_NONCE = 3973947400L;
|
||||||
private static final Coin BALANCE_AFTER_BLOCK = Coin.valueOf(22223642);
|
private static final Coin BALANCE_AFTER_BLOCK = Coin.valueOf(22223642);
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void setUp() throws Exception {
|
||||||
|
Context context = new Context(params);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testReceiveCoinbaseTransaction() throws Exception {
|
public void testReceiveCoinbaseTransaction() throws Exception {
|
||||||
// Block 169482 (hash 0000000000000756935f1ee9d5987857b604046f846d3df56d024cdb5f368665)
|
// Block 169482 (hash 0000000000000756935f1ee9d5987857b604046f846d3df56d024cdb5f368665)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user