From 019de6dc09a32ce36429572b1ebb21f9757a4755 Mon Sep 17 00:00:00 2001 From: Jianping Wu Date: Mon, 19 Nov 2018 17:04:39 -0800 Subject: [PATCH] Used hash of the first TxIn as namespace id. This ensures that the namespace id is unqiue. TODO: verify that the TxIn is indeed the hash of the first TxIn. --- src/script/keva.cpp | 21 +++++++++++++++++++-- src/script/keva.h | 8 +++++++- src/wallet/rpckeva.cpp | 30 +++++++++++++++--------------- src/wallet/rpcwallet.cpp | 12 ++++++++---- src/wallet/rpcwallet.h | 4 +++- src/wallet/test/wallet_tests.cpp | 3 ++- src/wallet/wallet.cpp | 27 ++++++++++++++++++++------- src/wallet/wallet.h | 1 + 8 files changed, 75 insertions(+), 31 deletions(-) diff --git a/src/script/keva.cpp b/src/script/keva.cpp index ad9d747d1..b6814535c 100644 --- a/src/script/keva.cpp +++ b/src/script/keva.cpp @@ -3,10 +3,12 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include