mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 01:40:26 +01:00
Block: remove references to deprecated constructor
This commit is contained in:
parent
084a801e2c
commit
bc7883ef8f
@ -312,7 +312,8 @@ public class BlockTest {
|
||||
@Test
|
||||
public void parseBlockWithHugeDeclaredTransactionsSize() {
|
||||
Context.propagate(new Context(100, Transaction.DEFAULT_TX_FEE, false, true));
|
||||
Block block = new Block(1, Sha256Hash.ZERO_HASH, Sha256Hash.ZERO_HASH, 1, 1, 1, new ArrayList<Transaction>()) {
|
||||
Block block = new Block(1, Sha256Hash.ZERO_HASH, Sha256Hash.ZERO_HASH, Instant.ofEpochSecond(1), 1, 1,
|
||||
new ArrayList<Transaction>()) {
|
||||
@Override
|
||||
protected void bitcoinSerializeToStream(OutputStream stream) throws IOException {
|
||||
ByteUtils.writeInt32LE(getVersion(), stream);
|
||||
|
@ -154,7 +154,7 @@ public class SPVBlockStoreTest {
|
||||
Stopwatch watch = Stopwatch.start();
|
||||
for (int i = 0; i < ITERATIONS; i++) {
|
||||
// Using i as the nonce so that the block hashes are different.
|
||||
Block block = new Block(0, Sha256Hash.ZERO_HASH, Sha256Hash.ZERO_HASH, 0, 0, i,
|
||||
Block block = new Block(0, Sha256Hash.ZERO_HASH, Sha256Hash.ZERO_HASH, Instant.EPOCH, 0, i,
|
||||
Collections.emptyList());
|
||||
StoredBlock b = new StoredBlock(block, BigInteger.ZERO, i);
|
||||
store.put(b);
|
||||
|
Loading…
Reference in New Issue
Block a user