Skip to content

Conversation

@DeckerSU
Copy link
Owner

  • Includes backport of combined #559 PR from komodo codebase. This PR contains many refactorings and improvements made by @jmjatlanta, such as: improvements and fix of mining and staking code, adding missed mutexes locks, unused code delete, etc.
  • Internal code improvements.
  • Fix komodo events (komodostate) file filling after last events refactoring. All users should delete (!) old komodostate and komodostate.ind files in data directory before use updated version of wallet / daemon.
  • Fix build errors with new versions of compilers, glibc, etc.
  • Get rid of plain C hash implementations (LibTomCrypt)
  • Add new unit-tests for interest / rewards calculations coverage.

- KomodoPlatform/komodo#559

Tests (gtest, etc.) needs additional changes to build.
Issue: if we will try to build KomodoOcean with CXXFLAGS='-g -O0'
we will get the following error during linkage:

usr/bin/ld: libbitcoin_util.a(libbitcoin_util_a-util.o): in function `__static_initialization_and_destruction_0(int, int)':
/home/decker/KomodoOcean/src/komodo_hardfork.h:19: undefined reference to `nStakedDecemberHardforkTimestamp'
/usr/bin/ld: /home/decker/KomodoOcean/src/komodo_hardfork.h:19: undefined reference to `nS4Timestamp'
/usr/bin/ld: /home/decker/KomodoOcean/src/komodo_hardfork.h:19: undefined reference to `nS5Timestamp'
/usr/bin/ld: /home/decker/KomodoOcean/src/komodo_hardfork.h:19: undefined reference to `nS6Timestamp'
/usr/bin/ld: /home/decker/KomodoOcean/src/komodo_hardfork.h:20: undefined reference to `nDecemberHardforkHeight'
/usr/bin/ld: /home/decker/KomodoOcean/src/komodo_hardfork.h:20: undefined reference to `nS4HardforkHeight'
/usr/bin/ld: /home/decker/KomodoOcean/src/komodo_hardfork.h:20: undefined reference to `nS5HardforkHeight'
/usr/bin/ld: /home/decker/KomodoOcean/src/komodo_hardfork.h:20: undefined reference to `nS6HardforkHeight'

So, we need to include komodo_hardfork.cpp into libbitcoin_util_a_SOURCES
or delete include of komodo_hardfork.h from komodo_globals.h.
to avoid the following errors:

/usr/bin/ld: depends/x86_64-unknown-linux-gnu/lib/libgmp.a(invert_limb.o): warning: relocation against `__gmpn_invert_limb_table' in read-only section `.text'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

when build with 11.2.0 (Ubuntu 22.04.1 LTS, etc.)
@DeckerSU DeckerSU merged commit f0c8c3e into static-experimental Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants