-
Notifications
You must be signed in to change notification settings - Fork 30
Support DS changes in cryptocurrency module [ECR-3587] #1196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
<systemPropertyVariables> | ||
<it.artifactFilename>${artifactFilename}.jar</it.artifactFilename> | ||
<it.artifactId>${groupId}:${artifactId}:${version}</it.artifactId> | ||
<it.serviceName>cryptocurrency-demo</it.serviceName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is that specified in POM?
<it.artifactId>${groupId}:${artifactId}:${version}</it.artifactId> | ||
<it.serviceName>cryptocurrency-demo</it.serviceName> | ||
<it.serviceId>46</it.serviceId> | ||
<it.artifactsDirectory>target</it.artifactsDirectory> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the standard variable ${project.build.directory} so that it works regardless of the current directory.
public CryptocurrencySchema(View view) { | ||
public CryptocurrencySchema(View view, String serviceName) { | ||
this.view = checkNotNull(view); | ||
this.namespace = "cryptocurrency_service_namespace." + serviceName + "."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't already unique service name enough for a namespace?
|
||
return node.withSnapshot((view) -> { | ||
CryptocurrencySchema schema = new CryptocurrencySchema(view); | ||
CryptocurrencySchema schema = new CryptocurrencySchema(view, serviceInstanceName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createDataSchema(view) -> CryptocurrencySchema
*/ | ||
static CreateWalletTx fromRawTransaction(RawTransaction rawTransaction) { | ||
checkTransaction(rawTransaction, ID); | ||
static CreateWalletTx from(int txId, byte[] arguments) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does it accept the id if it isn't needed?
.build() | ||
.toByteArray()) | ||
.build(); | ||
static byte[] createCreateWalletTxPayload(long initialBalance) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new seems to be a more appropriate prefix in this case.
ProtobufReflectiveSerializer(Class<MessageT> messageType) { | ||
MethodHandles.Lookup lookup = MethodHandles.publicLookup(); | ||
MethodHandles.Lookup lookup = MethodHandles.publicLookup() | ||
.in(messageType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such implementation must be clarified.
<configuration> | ||
<argLine> | ||
${jacoco.args} | ||
-Djava.library.path=${ejb-core.nativeLibPath} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, removed it, thanks
|
||
@Test | ||
@RequiresNativeLibrary | ||
@Disabled("Disabled until transaction results fix") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add ticket number if any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transaction result is already in (#1174)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabled these
ProtobufReflectiveSerializer(Class<MessageT> messageType) { | ||
MethodHandles.Lookup lookup = MethodHandles.publicLookup(); | ||
MethodHandles.Lookup lookup = MethodHandles.publicLookup() | ||
.in(messageType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such implementation must be clarified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, the build is red though.
Overview
Support DS changes in cryptocurrency module.
See: https://jira.bf.local/browse/ECR-3587
Definition of Done