forked from nordicenergy/guardian-proof-of-stake-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FastForgingTest.java
36 lines (30 loc) · 1.11 KB
/
FastForgingTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright © 2013-2016 The Nxt Core Developers.
* Copyright © 2016-2019 Jelurida IP B.V.
*
* See the LICENSE.txt file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with Jelurida B.V.,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE.txt file.
*
* Removal or modification of this copyright notice is prohibited.
*
*/
package nxt;
import org.junit.Test;
import java.util.Properties;
public class FastForgingTest extends AbstractForgingTest {
@Test
public void fastForgingTest() {
Properties properties = FastForgingTest.newTestProperties();
properties.setProperty("nxt.disableGenerateBlocksThread", "false");
properties.setProperty("nxt.enableFakeForging", "false");
properties.setProperty("nxt.timeMultiplier", "1000");
AbstractForgingTest.init(properties);
forgeTo(startHeight + 10, testForgingSecretPhrase);
AbstractForgingTest.shutdown();
}
}