Skip to content

Commit

Permalink
Release 1.2.8 (#791)
Browse files Browse the repository at this point in the history
* [ANCHOR-193] Fix the bug where the result of deposit information not saved in database in SEP31 (#788)
  • Loading branch information
lijamie98 authored Mar 8, 2023
1 parent 4e9b822 commit 63750cf
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .run/v1.2 - Business Server.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="v1.2 - Business Server" type="Application" factoryName="Application">
<envs>
<env name="secret.sep10.jwt_secret" value="jwt_secret" />
<env name="secret.sep10.signing_seed" value="SAKXNWVTRVR4SJSHZUDB2CLJXEQHRT62MYQWA2HBB7YBOTCFJJJ55BZF" />
</envs>
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.ServiceRunner" />
<module name="java-stellar-anchor-sdk.service-runner.main" />
<option name="PROGRAM_PARAMETERS" value="--anchor-reference-server" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.PaymentBeans" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="software.aws.toolkits.jetbrains.core.execution.JavaAwsConnectionExtension">
<option name="credential" />
<option name="region" />
<option name="useCurrentConnection" value="false" />
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
28 changes: 28 additions & 0 deletions .run/v1.2 - Observer.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="v1.2 - Observer" type="Application" factoryName="Application" activateToolWindowBeforeRun="false">
<envs>
<env name="secret.sep10.jwt_secret" value="jwt_secret" />
<env name="secret.sep10.signing_seed" value="SAKXNWVTRVR4SJSHZUDB2CLJXEQHRT62MYQWA2HBB7YBOTCFJJJ55BZF" />
<env name="POSTGRES_USERNAME" value="postgres" />
<env name="POSTGRES_PASSWORD" value="password" />
</envs>
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.ServiceRunner" />
<module name="java-stellar-anchor-sdk.service-runner.main" />
<option name="PROGRAM_PARAMETERS" value="--stellar-observer" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.PaymentBeans" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="software.aws.toolkits.jetbrains.core.execution.JavaAwsConnectionExtension">
<option name="credential" />
<option name="region" />
<option name="useCurrentConnection" value="false" />
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
26 changes: 26 additions & 0 deletions .run/v1.2 - Platform Server.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="v1.2 - Platform Server" type="Application" factoryName="Application">
<envs>
<env name="secret.sep10.jwt_secret" value="jwt_secret" />
<env name="secret.sep10.signing_seed" value="SAKXNWVTRVR4SJSHZUDB2CLJXEQHRT62MYQWA2HBB7YBOTCFJJJ55BZF" />
</envs>
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.ServiceRunner" />
<module name="java-stellar-anchor-sdk.service-runner.main" />
<option name="PROGRAM_PARAMETERS" value=" --sep-server" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.PaymentBeans" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="software.aws.toolkits.jetbrains.core.execution.JavaAwsConnectionExtension">
<option name="credential" />
<option name="region" />
<option name="useCurrentConnection" value="false" />
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 1.2.8
* Fix the SEP-31 transaction not saved to database when deposit info is updated. [#791](https://github.com/stellar/java-stellar-anchor-sdk/pull/791)

## 1.2.7
* Add database reconnection with backoff timer. [#774](https://github.com/stellar/java-stellar-anchor-sdk/pull/774)

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ subprojects {

allprojects {
group = "org.stellar.anchor-sdk"
version = "1.2.7"
version = "1.2.8"

tasks.jar {
manifest {
Expand Down
6 changes: 4 additions & 2 deletions core/src/main/java/org/stellar/anchor/sep31/Sep31Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,13 @@ public Sep31PostTransactionResponse postTransaction(
Context.get().setTransaction(txn);
updateAmounts();

Context.get().setTransaction(sep31TransactionStore.save(txn));
txn = Context.get().getTransaction();
txn = sep31TransactionStore.save(txn);
Context.get().setTransaction(txn);

updateDepositInfo();

txn = sep31TransactionStore.save(txn);

StellarId senderStellarId = StellarId.builder().id(txn.getSenderId()).build();
StellarId receiverStellarId = StellarId.builder().id(txn.getReceiverId()).build();
TransactionEvent event =
Expand Down

0 comments on commit 63750cf

Please sign in to comment.