Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public interface Node {
HashCode submitTransaction(RawTransaction rawTransaction);

/**
* Performs a given function with a snapshot of the current database state.
* Performs the given function with a snapshot of the current database state.
*
* @param snapshotFunction a function to execute
* @param <ResultT> a type the function returns
Expand All @@ -66,8 +66,6 @@ public interface Node {
* for signing transactions in {@link #submitTransaction(RawTransaction)}.
*
* <p>This key is stored under "service_public_key" key in the node configuration file.
*
* @throws IllegalStateException if the node proxy is closed
*/
PublicKey getPublicKey();
}
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private static <T> Stream<T> stream(KeySetIndexProxy<T> setIndex) {
}

/**
* Performs a given function with a snapshot of the current database state (i.e., the one that
* Performs the given function with a snapshot of the current database state (i.e., the one that
* corresponds to the latest committed block). In-pool (not yet processed) transactions are also
* accessible with it in {@linkplain Blockchain#getTxMessages() blockchain}.
*
Expand All @@ -309,7 +309,7 @@ public void withSnapshot(Consumer<Snapshot> snapshotFunction) {
}

/**
* Performs a given function with a snapshot of the current database state (i.e., the one that
* Performs the given function with a snapshot of the current database state (i.e., the one that
* corresponds to the latest committed block) and returns a result of its execution. In-pool
* (not yet processed) transactions are also accessible with it in
* {@linkplain Blockchain#getTxMessages() blockchain}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* .withService(TestServiceModule.class));
*
* &#64;BeforeEach
* void setUp() {
* void setUp(TestKit testKit) {
* // Set up
* }
*
Expand Down Expand Up @@ -73,8 +73,8 @@
* <p>As different tests might need slightly different TestKit configuration, following
* parameterization annotations are available:
* <ul>
* <li>{@link Validator} sets main TestKit validator node type to validator</li>
* <li>{@link Auditor} sets main TestKit validator node type to auditor</li>
* <li>{@link Validator} sets main TestKit node type to validator</li>
* <li>{@link Auditor} sets main TestKit node type to auditor</li>
* <li>{@link ValidatorCount} sets number of validator nodes in the TestKit network</li>
* </ul>
* These annotations should be applied on TestKit parameter:
Expand Down