Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BTA-BATA/Bataoshi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.17.0.15-Linux
Choose a base ref
...
head repository: BTA-BATA/Bataoshi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.17
Choose a head ref

Commits on May 1, 2019

  1. Copy the full SHA
    65101fb View commit details
  2. Copy the full SHA
    3393d47 View commit details
  3. Copy the full SHA
    d98fee4 View commit details
  4. Remove errant past from walletcreatefundedpsbt for nLocktime replacea…

    …bility
    
    Github-Pull: bitcoin#15213
    Rebased-From: 85f0ca9
    instagibbs authored and uhliksk committed May 1, 2019
    Copy the full SHA
    54f8dc1 View commit details
  5. Update zmq to 4.3.1

    rex4539 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    2eab86b View commit details
  6. rpc: Make unloadwallet wait for complete wallet unload

    Github-Pull: bitcoin#14941
    Rebased-From: c37851d
    promag authored and uhliksk committed May 1, 2019
    Copy the full SHA
    0edd154 View commit details
  7. Copy the full SHA
    2e49756 View commit details
  8. Add function to close all Db's and reload the databae environment

    Adds a ReloadDbEnv function to BerkeleyEnvironment in order to close all Db
    instances, closes the environment, resets it, and then reopens
    the BerkeleyEnvironment.
    
    Also adds a ReloadDbEnv function to BerkeleyDatabase that calls
    BerkeleyEnvironment's ReloadDbEnv.
    
    Github-Pull: bitcoin#12493
    Rebased-From: 5d296ac
    achow101 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    fc0ab2b View commit details
  9. After encrypting the wallet, reload the database environment

    Calls ReloadDbEnv after encrypting the wallet so that the database
    environment is flushed, closed, and reopened to prevent unencrypted
    keys from being saved on disk.
    
    Github-Pull: bitcoin#12493
    Rebased-From: d7637c5
    achow101 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    f6c5ddc View commit details
  10. Move BerkeleyEnvironment deletion from internal method to callsite

    Instead of having the object destroy itself, having the caller
    destroy it.
    
    Github-Pull: bitcoin#12493
    Rebased-From: a769461
    achow101 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    c9918ad View commit details
  11. No longer shutdown after encrypting the wallet

    Since the database environment is flushed, closed, and reopened during
    EncryptWallet, there is no need to shut down the software anymore.
    
    Github-Pull: bitcoin#12493
    Rebased-From: c1dde3a
    achow101 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    89bd447 View commit details
  12. wallet: Add WalletLocation utility class

    Github-Pull: bitcoin#14350
    Rebased-From: 01a4c09
    promag authored and uhliksk committed May 1, 2019
    Copy the full SHA
    f7e5f6f View commit details
  13. wallet: Refactor to use WalletLocation

    Github-Pull: bitcoin#14350
    Rebased-From: 65f3672
    promag authored and uhliksk committed May 1, 2019
    Copy the full SHA
    3167021 View commit details
  14. wallet: Fix duplicate fileid

    Github-Pull: bitcoin#14320
    Rebased-From: 2d796fa
    ken2812221 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    cd29398 View commit details
  15. tests: add test case for loading copied wallet twice

    Github-Pull: bitcoin#14320
    Rebased-From: 4ea7732
    ken2812221 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    6396a64 View commit details
  16. wallet: Add trailing wallet.dat when detecting duplicate wallet if it…

    …'s a directory.
    
    Github-Pull: bitcoin#14552
    Rebased-From: 15c93f0
    ken2812221 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    0c39627 View commit details
  17. Refactor: Move m_db pointers into BerkeleyDatabase

    This is a refactoring change that doesn't affect behavior. The motivation
    behind the change is give BerkeleyEnvironment objects access to
    BerkeleyDatabase objects so it will be possible to simplify the duplicate
    wallet check and more reliably avoid opening the same databases twice.
    
    Github-Pull: bitcoin#14552
    Rebased-From: c456fbd
    ryanofsky authored and uhliksk committed May 1, 2019
    Copy the full SHA
    ccdb5ac View commit details
  18. wallet: Create IsDatabaseLoaded function

    Github-Pull: bitcoin#14552
    Rebased-From: 5912031
    ken2812221 authored and uhliksk committed May 1, 2019
    Copy the full SHA
    692fc53 View commit details
  19. Free BerkeleyEnvironment instances when not in use

    Instead of adding BerkeleyEnvironment objects permanently to the g_dbenvs map,
    use reference counted shared pointers and remove map entries when the last
    BerkeleyEnvironment reference goes out of scope.
    
    This change was requested by Matt Corallo <git@bluematt.me> and makes code that
    sets up mock databases cleaner. The mock database environment will now go out
    of scope and be reset on destruction so there is no need to call
    BerkeleyEnvironment::Reset() during wallet construction to clear out prior
    state.
    
    This change does affect bitcoin behavior slightly. On startup, instead of same
    wallet environments staying open throughout VerifyWallets() and OpenWallets()
    calls, VerifyWallets() will open and close an environment once for each wallet,
    and OpenWallets() will create its own environment(s) later.
    
    Github-Pull: bitcoin#11911
    Rebased-From: f1f4bb7
    ryanofsky authored and uhliksk committed May 1, 2019
    Copy the full SHA
    3da68df View commit details
  20. Copy the full SHA
    e1ec67a View commit details
  21. Tests: add unit tests for GetWalletEnv

    Github-Pull: bitcoin#11911
    Rebased-From: 88b1d95
    PierreRochard authored and uhliksk committed May 1, 2019
    Copy the full SHA
    c1f7d57 View commit details
  22. wallet: Close dbenv error file db.log

    The error file db.log is opened by BerkeleyEnvironment instance and
    should be closed after dbenv is closed.
    
    Github-Pull: bitcoin#15297
    Rebased-From: 8602a1e
    promag authored and uhliksk committed May 1, 2019
    Copy the full SHA
    f509f52 View commit details
  23. wallet: Close wallet env lock file

    Close .walletlock file when a BerkeleyEnvironment is deleted.
    
    Github-Pull: bitcoin#15297
    Rebased-From: 2f8b8f4
    promag authored and uhliksk committed May 1, 2019
    Copy the full SHA
    325f960 View commit details
  24. qa: Test .walletlock file is closed

    Github-Pull: bitcoin#15297
    Rebased-From: d3bf3b9
    promag authored and uhliksk committed May 1, 2019
    Copy the full SHA
    3da7701 View commit details
  25. fix net processing

    uhliksk committed May 1, 2019
    Copy the full SHA
    5c4dbc9 View commit details
  26. fix website url

    uhliksk committed May 1, 2019
    Copy the full SHA
    02df1ba View commit details
  27. Bata Core 0.17.1.17 release

    uhliksk committed May 1, 2019
    Copy the full SHA
    3bb9ea4 View commit details

Commits on May 2, 2019

  1. Merge pull request #10 from FxTC-Bata-development/0.17

    Bata Core 0.17.1.17 release
    pc888 authored May 2, 2019
    Copy the full SHA
    8a3ea60 View commit details

Commits on Feb 20, 2021

  1. Update README.md

    requiredtruth authored Feb 20, 2021
    Copy the full SHA
    f1a98f9 View commit details
  2. Merge pull request #11 from requiredtruth/patch-1

    Update README.md
    pc888 authored Feb 20, 2021
    Copy the full SHA
    c6fc3a1 View commit details

Commits on Jul 25, 2021

  1. Update README.md

    Updated URL 
    Added coin specs with updated links.
    Added mining pool requirements
    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    73e92d4 View commit details
  2. Update README.md

    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    3b92f3d View commit details
  3. Update README.md

    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    1e7b9e7 View commit details
  4. Update README.md

    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    30acacd View commit details
  5. Update README.md

    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    d33ace0 View commit details
  6. Update README.md

    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    112a280 View commit details
  7. Update README.md

    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    80440b6 View commit details
  8. Update README.md

    BTA-BATA authored Jul 25, 2021
    Copy the full SHA
    8578fde View commit details

Commits on Aug 13, 2021

  1. Update issue templates

    BTA-BATA authored Aug 13, 2021
    Copy the full SHA
    f53538c View commit details

Commits on Aug 30, 2021

  1. Update README.md

    BTA-BATA authored Aug 30, 2021
    Copy the full SHA
    ebea627 View commit details

Commits on Sep 6, 2021

  1. Update README.md

    BTA-BATA authored Sep 6, 2021
    Copy the full SHA
    68404bf View commit details
Showing with 659 additions and 190 deletions.
  1. +38 −0 .github/ISSUE_TEMPLATE/bug_report.md
  2. +10 −0 .github/ISSUE_TEMPLATE/custom.md
  3. +20 −0 .github/ISSUE_TEMPLATE/feature_request.md
  4. +108 −3 README.md
  5. +3 −3 configure.ac
  6. +2 −2 depends/packages/zeromq.mk
  7. +1 −1 doc/dependencies.md
  8. +11 −2 doc/release-notes.md
  9. +1 −0 src/Makefile.test.include
  10. +2 −2 src/bench/coin_selection.cpp
  11. +14 −0 src/bitcoind.cpp
  12. +2 −2 src/init.cpp
  13. +12 −3 src/masternodeman.cpp
  14. +4 −11 src/net_processing.cpp
  15. +2 −3 src/qt/askpassphrasedialog.cpp
  16. +1 −1 src/qt/test/addressbooktests.cpp
  17. +1 −1 src/qt/test/wallettests.cpp
  18. +4 −1 src/rpc/governance.cpp
  19. +4 −1 src/rpc/masternode.cpp
  20. +6 −0 src/util.cpp
  21. +1 −0 src/util.h
  22. +122 −43 src/wallet/db.cpp
  23. +47 −14 src/wallet/db.h
  24. +10 −6 src/wallet/init.cpp
  25. +16 −31 src/wallet/rpcwallet.cpp
  26. +1 −1 src/wallet/test/coinselector_tests.cpp
  27. +72 −0 src/wallet/test/db_tests.cpp
  28. +2 −1 src/wallet/test/wallet_test_fixture.cpp
  29. +8 −8 src/wallet/test/wallet_tests.cpp
  30. +62 −17 src/wallet/wallet.cpp
  31. +20 −11 src/wallet/wallet.h
  32. +11 −0 src/wallet/walletutil.cpp
  33. +20 −0 src/wallet/walletutil.h
  34. +2 −4 test/functional/rpc_fundrawtransaction.py
  35. +0 −8 test/functional/test_framework/test_node.py
  36. +1 −2 test/functional/wallet_bumpfee.py
  37. +1 −2 test/functional/wallet_dump.py
  38. +1 −2 test/functional/wallet_encryption.py
  39. +1 −3 test/functional/wallet_keypool.py
  40. +15 −0 test/functional/wallet_multiwallet.py
  41. +0 −1 test/lint/lint-circular-dependencies.sh
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
111 changes: 108 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
Bata Core integration/staging tree
Links
==================================

https://fixedtradecoin.org
https://bata.io

https://bata.digital

https://batacrypto.imgbb.com/

https://bata.io/links/

Blockchain Explorer: https://chainz.cryptoid.info/bta/

https://coinmarketcap.com/currencies/bata/

https://www.coingecko.com/en/coins/bata

https://bitcointalk.org/index.php?topic=2297895.msg23319563#msg23319563

Bata Core integration/staging tree
==================================

Linux Build Instructions and Notes
==================================
@@ -32,7 +49,7 @@ Build
----------------------
1. Clone the source:

git clone https://github.com/bata/bata.git
git clone https://github.com/BTA-BATA/Bataoshi.git

2. Build Bata Core:

@@ -58,3 +75,91 @@ See (doc/build-osx.md) for instructions on building on Mac OS X.
Windows (64/32 bit) Build Instructions and Notes
=====================================
See (doc/build-windows.md) for instructions on building on Windows 64/32 bit.



Coin Specs
=====================================


Multi-algo

Independent algorithm chains

Six Algorithm/s:

Sha256d
Scrypt
Nist5
Lyra2z
x11
x16r

Dynamic Blocks

Based on block height and difficulty ( means no cheap blocks )

Instamine protection

Instamine protection will trigger after 5 blocks of single algo are mined in short period of time.

Deadlock protection

Difficulty is reduced even when no new blocks are found, new blocks are mined much faster even after very high hashrate period. This prevents "stuck chain" issues.

Spork control over block processing

The ability to stop the blockchain anytime by sporks manually if any kind of dangerous activity in network is detected. We have full control of block processing without need to wallet upgrade.


Masternode Collateral : 10,000 BTA
Masternode Reward : Dynamic reward of up to 0.25 BTA

Circulating 5,055,187 BTA (25/07/2021)

Max Supply: 10,000,000 BTA

First block 2015-05-08 22:20:38




Mining Pool Requirements
=====================================


Each wallet requires separate address.

1% Dev fee to: B689SM77Pe56wJze6KPywtKkva9rhPZZUc - Or blocks will be rejected
----------------------


Pools have to start daemons with parameter "algo=sha256d" (or scrypt, nist5, lyra2z, x11, x16r) in conf file or in command line directly.

Pools can check their settings with RPC command

getmininginfo:
{
"blocks": 1110073,
"currentblockweight": 4000,
"currentblocktx": 0,
"difficulty": 6.964176971960165,
"algo": "lyra2z",
"networkhashps": 94.36438084953204,
"pooledtx": 0,
"chain": "main",
"warnings": ""
}(edited)


Please check if you have this commit applied on yiimp (if using yiimp):

https://github.com/tpruvot/yiimp/commit/9dbce85dcc2137e563e87659f9827aa7e4be3244
GitHub
stratum: dev/charity fees for coins with masternodes (#276) · tpr...






6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 17)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 15)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_BUILD, 17)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2018)
define(_COPYRIGHT_YEAR, 2019)
define(_COPYRIGHT_HOLDERS,[The %s developers])
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Bata Core]])
AC_INIT([Bata Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[https://github.com/bata/bata/issues],[bitcoin],[https://bata.io/])
4 changes: 2 additions & 2 deletions depends/packages/zeromq.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package=zeromq
$(package)_version=4.2.3
$(package)_version=4.3.1
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/
$(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=8f1e2b2aade4dbfde98d82366d61baef2f62e812530160d2e6d0a5bb24e40bc0
$(package)_sha256_hash=bcbabe1e2c7d0eec4ed612e10b94b112dd5f06fcefa994a0c79a45d835cd21eb
$(package)_patches=0001-fix-build-with-older-mingw64.patch 0002-disable-pthread_set_name_np.patch

define $(package)_set_vars
2 changes: 1 addition & 1 deletion doc/dependencies.md
Original file line number Diff line number Diff line change
@@ -26,5 +26,5 @@ These are the dependencies currently used by Bitcoin Core. You can find instruct
| Qt | [5.9.6](https://download.qt.io/official_releases/qt/) | 5.x | No | | |
| XCB | | | | | [Yes](https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk#L87) (Linux only) |
| xkbcommon | | | | | [Yes](https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk#L86) (Linux only) |
| ZeroMQ | [4.2.3](https://github.com/zeromq/libzmq/releases) | | No | | |
| ZeroMQ | [4.3.1](https://github.com/zeromq/libzmq/releases) | | No | | |
| zlib | [1.2.11](https://zlib.net/) | | | | No |
13 changes: 11 additions & 2 deletions doc/release-notes.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ Bitcoin Core version 0.17.x is now available from:

<https://bitcoincore.org/bin/bitcoin-core-0.17.x/>

This is a new major version release, including new features, various bugfixes
This is a new minor version release, including new features, various bugfixes
and performance improvements, as well as updated translations.

Please report bugs using the issue tracker at GitHub:
@@ -60,7 +60,16 @@ support versions of macOS older than 10.10.
Notable changes
===============

(todo)
Documentation
-------------

- A new document introduces Bitcoin Core's BIP174
[Partially-Signed Bitcoin Transactions (PSBT)](https://github.com/bitcoin/bitcoin/blob/0.17/doc/psbt.md)
interface, which is used to allow multiple programs to collaboratively
work to create, sign, and broadcast new transactions. This is useful
for offline (cold storage) wallets, multisig wallets, coinjoin
implementations, and many other cases where two or more programs need
to interact to generate a complete transaction.

0.17.x change log
=================
1 change: 1 addition & 0 deletions src/Makefile.test.include
Original file line number Diff line number Diff line change
@@ -97,6 +97,7 @@ BITCOIN_TESTS =\
if ENABLE_WALLET
BITCOIN_TESTS += \
wallet/test/accounting_tests.cpp \
wallet/test/db_tests.cpp \
wallet/test/psbt_wallet_tests.cpp \
wallet/test/wallet_tests.cpp \
wallet/test/wallet_crypto_tests.cpp \
4 changes: 2 additions & 2 deletions src/bench/coin_selection.cpp
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector<Ou
// (https://github.com/bitcoin/bitcoin/issues/7883#issuecomment-224807484)
static void CoinSelection(benchmark::State& state)
{
const CWallet wallet("dummy", WalletDatabase::CreateDummy());
const CWallet wallet(WalletLocation(), WalletDatabase::CreateDummy());
LOCK(wallet.cs_wallet);

// Add coins.
@@ -57,7 +57,7 @@ static void CoinSelection(benchmark::State& state)
}

typedef std::set<CInputCoin> CoinSet;
static const CWallet testWallet("dummy", WalletDatabase::CreateDummy());
static const CWallet testWallet(WalletLocation(), WalletDatabase::CreateDummy());
std::vector<std::unique_ptr<CWalletTx>> wtxn;

// Copied from src/wallet/test/coinselector_tests.cpp
14 changes: 14 additions & 0 deletions src/bitcoind.cpp
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@
#include <walletinitinterface.h>

#include <stdio.h>
// VELES BEGIN
#include <masternodeconfig.h>
// VELES END

/* Introduction text for doxygen: */

@@ -107,6 +110,17 @@ static bool AppInit(int argc, char* argv[])
return false;
}

// VELES BEGIN
// Dash
// parse masternode.conf
std::string strErr;
if(!masternodeConfig.read(strErr)) {
fprintf(stderr,"Error reading masternode configuration file: %s\n", strErr.c_str());
return false;
}
//
// VELES END

// Error out when loose non-argument tokens are encountered on command line
for (int i = 1; i < argc; i++) {
if (!IsSwitchChar(argv[i][0])) {
4 changes: 2 additions & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
@@ -335,10 +335,10 @@ void Shutdown()
LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what());
}
#endif
g_wallet_init_interface.Close();
UnregisterAllValidationInterfaces();
GetMainSignals().UnregisterBackgroundSignalScheduler();
GetMainSignals().UnregisterWithMempoolSignals(mempool);
g_wallet_init_interface.Close();
globalVerifyHandle.reset();
ECC_Stop();
LogPrintf("%s: done\n", __func__);
@@ -587,7 +587,7 @@ void SetupServerArgs()
std::string LicenseInfo()
{
const std::string URL_SOURCE_CODE = "<https://github.com/bata/bata>";
const std::string URL_WEBSITE = "<https://fixedtradecoin.org>";
const std::string URL_WEBSITE = "<https://bata.io>";

return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR) + " ") + "\n" +
"\n" +
15 changes: 12 additions & 3 deletions src/masternodeman.cpp
Original file line number Diff line number Diff line change
@@ -151,7 +151,10 @@ bool CMasternodeMan::PoSeBan(const COutPoint &outpoint)

void CMasternodeMan::Check()
{
LOCK(cs);
// FXTC BEGIN
//LOCK(cs);
LOCK2(cs_main, cs);
// FXTC END

LogPrint(BCLog::MASTERNODE, "CMasternodeMan::Check -- nLastWatchdogVoteTime=%d, IsWatchdogActive()=%d\n", nLastWatchdogVoteTime, IsWatchdogActive());

@@ -1452,7 +1455,10 @@ bool CMasternodeMan::CheckMnbAndUpdateMasternodeList(CNode* pfrom, CMasternodeBr

void CMasternodeMan::UpdateLastPaid(const CBlockIndex* pindex)
{
LOCK(cs);
// FXTC BEGIN
//LOCK(cs);
LOCK2(cs_main, cs);
// FXTC END

if(fLiteMode || !masternodeSync.IsWinnersListSynced() || mapMasternodes.empty()) return;

@@ -1510,7 +1516,10 @@ void CMasternodeMan::RemoveGovernanceObject(uint256 nGovernanceObjectHash)

void CMasternodeMan::CheckMasternode(const CPubKey& pubKeyMasternode, bool fForce)
{
LOCK(cs);
// FXTC BEGIN
//LOCK(cs)
LOCK2(cs_main, cs);
// FXTC END
for (auto& mnpair : mapMasternodes) {
if (mnpair.second.pubKeyMasternode == pubKeyMasternode) {
mnpair.second.Check(fForce);
Loading