Skip to content

Commit

Permalink
Revert GTTA back to synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Yu Wei authored and marktwtn committed Jun 19, 2019
1 parent e185f78 commit 7eea49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/iota/iri/service/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ private static void incEllapsedTimeGetTxToApprove(long ellapsedTime) {
* @return {@link com.iota.iri.service.dto.GetTransactionsToApproveResponse}
**/
@Document(name="getTransactionsToApprove")
private AbstractResponse getTransactionsToApproveStatement(int depth, Optional<Hash> reference) {
private synchronized AbstractResponse getTransactionsToApproveStatement(int depth, Optional<Hash> reference) {
if (depth < 0 || depth > configuration.getMaxDepth()) {
return ErrorResponse.create("Invalid depth input");
}
Expand Down

0 comments on commit 7eea49a

Please sign in to comment.