From 25b787f6f2391d1899af1705bbf22e08fafc5682 Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Sun, 5 Sep 2021 18:06:32 -0400 Subject: [PATCH] Add files via upload --- .../java/org/qortal/block/Block536140.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main/java/org/qortal/block/Block536140.java diff --git a/src/main/java/org/qortal/block/Block536140.java b/src/main/java/org/qortal/block/Block536140.java new file mode 100644 index 00000000..ab1ca58f --- /dev/null +++ b/src/main/java/org/qortal/block/Block536140.java @@ -0,0 +1,21 @@ +package org.qortal.block; + +import org.qortal.naming.Name; +import org.qortal.repository.DataException; + +public final class Block536140 { + + private Block536140() { + /* Do not instantiate */ + } + + public static void processFix(Block block) throws DataException { + // Unregister the existing name record if it exists + // This ensures that the duplicate name is considered valid, and therefore + // the second (i.e. duplicate) REGISTER_NAME transaction data is applied. + // Both were issued by the same user account, so there is no conflict. + Name name = new Name(block.repository, "Qweb"); + name.unregister(); + } + +}