From 66047b9dc6d678751908c6f23108533067d313a2 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 6 Jul 2019 15:00:53 +0800 Subject: [PATCH] dont require inputs and outputs_id to be unique --- sql/openmonero.sql | 1 - sql/openmonero_test.sql | 1 - src/xmregcore | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/openmonero.sql b/sql/openmonero.sql index 7d15c3e..1a55235 100755 --- a/sql/openmonero.sql +++ b/sql/openmonero.sql @@ -63,7 +63,6 @@ CREATE TABLE IF NOT EXISTS `Inputs` ( `amount` bigint(20) UNSIGNED ZEROFILL NOT NULL DEFAULT '00000000000000000000', `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - UNIQUE KEY `output_id` (`output_id`,`key_image`), KEY `account_id2` (`account_id`), KEY `tx_id2` (`tx_id`), KEY `output_id2` (`output_id`) diff --git a/sql/openmonero_test.sql b/sql/openmonero_test.sql index fe2cc5d..280ac81 100755 --- a/sql/openmonero_test.sql +++ b/sql/openmonero_test.sql @@ -80,7 +80,6 @@ CREATE TABLE IF NOT EXISTS `Inputs` ( `amount` bigint(20) UNSIGNED ZEROFILL NOT NULL DEFAULT '00000000000000000000', `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - UNIQUE KEY `output_id` (`output_id`,`key_image`), KEY `account_id2` (`account_id`), KEY `tx_id2` (`tx_id`), KEY `output_id2` (`output_id`) diff --git a/src/xmregcore b/src/xmregcore index a27fa5e..20c9de3 160000 --- a/src/xmregcore +++ b/src/xmregcore @@ -1 +1 @@ -Subproject commit a27fa5ed36f897b1ecf66d9f591cdc8cfadde73a +Subproject commit 20c9de37cfa5b199bd36e0a2e12fcb01337ef779