From 8ae78703cade1320ceb0586e1a7c1fba317ea9c4 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Wed, 4 Aug 2021 18:59:30 +0100 Subject: [PATCH] Revert "Initial attempt at adding "sleep until message" functionality to DOGE ACCTv2." This reverts commit a1c61a1146455c7dafb0e9afeb11cc93c25fed03. --- src/main/java/org/qortal/crosschain/DogecoinACCTv2.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/org/qortal/crosschain/DogecoinACCTv2.java b/src/main/java/org/qortal/crosschain/DogecoinACCTv2.java index c4b0edb3..d2dc8fcb 100644 --- a/src/main/java/org/qortal/crosschain/DogecoinACCTv2.java +++ b/src/main/java/org/qortal/crosschain/DogecoinACCTv2.java @@ -88,7 +88,7 @@ public class DogecoinACCTv2 implements ACCT { private static final Logger LOGGER = LogManager.getLogger(DogecoinACCTv2.class); public static final String NAME = DogecoinACCTv2.class.getSimpleName(); - public static final byte[] CODE_BYTES_HASH = HashCode.fromString("6fff38d6eeb06568a9c879c5628527730319844aa0de53f5f4ffab5506efe885").asBytes(); // SHA256 of AT code bytes + public static final byte[] CODE_BYTES_HASH = HashCode.fromString("0eb49b0313ff3855a29d860c2a8203faa2ef62e28ea30459321f176079cfa3a6").asBytes(); // SHA256 of AT code bytes public static final int SECRET_LENGTH = 32; @@ -356,9 +356,6 @@ public class DogecoinACCTv2 implements ACCT { /* Transaction processing loop */ labelTradeTxnLoop = codeByteBuffer.position(); - /* Sleep until message arrives */ - codeByteBuffer.put(OpCode.EXT_FUN_DAT.compile(QortalFunctionCode.SLEEP_UNTIL_MESSAGE.value, addrLastTxnTimestamp)); - // Find next transaction (if any) to this AT since the last one (referenced by addrLastTxnTimestamp) codeByteBuffer.put(OpCode.EXT_FUN_DAT.compile(FunctionCode.PUT_TX_AFTER_TIMESTAMP_INTO_A, addrLastTxnTimestamp)); // If no transaction found, A will be zero. If A is zero, set addrResult to 1, otherwise 0. @@ -465,9 +462,6 @@ public class DogecoinACCTv2 implements ACCT { /* Transaction processing loop */ labelRedeemTxnLoop = codeByteBuffer.position(); - /* Sleep until message arrives */ - codeByteBuffer.put(OpCode.EXT_FUN_DAT.compile(QortalFunctionCode.SLEEP_UNTIL_MESSAGE.value, addrLastTxnTimestamp)); - // Find next transaction to this AT since the last one (if any) codeByteBuffer.put(OpCode.EXT_FUN_DAT.compile(FunctionCode.PUT_TX_AFTER_TIMESTAMP_INTO_A, addrLastTxnTimestamp)); // If no transaction found, A will be zero. If A is zero, set addrComparator to 1, otherwise 0.