Commit graph

13503 commits

Author SHA1 Message Date
Jason Rhinelander
b8ecb6724c device: C++ cleanups and modernization
- Clean up a bunch of not very nice C and older C++ code in the
`device/` tree.

- Rename device/device_io_* source files to io_*, and remove their `_io`
suffix from the class names (since they are *already* inside an `io`
namespace).
2021-11-04 01:35:44 -03:00
Jason Rhinelander
7f7caadf4e Add short_duration for single-unit time printing 2021-11-04 01:33:42 -03:00
Jason Rhinelander
f8c47ba1f7
Merge pull request #1497 from jagerman/ci-caching
Ci caching
2021-10-19 12:34:53 -03:00
Jason Rhinelander
e312e30f12
Merge pull request #1494 from tewinget/sqlitedb
fix bugs in initial implementation of sqlitedb abstraction
2021-10-19 12:34:33 -03:00
Jason Rhinelander
5a73ec194a
Merge pull request #1495 from jagerman/remove-uselessness
Remove useless atomic calculations
2021-10-19 12:33:35 -03:00
Jason Rhinelander
0c24bbb71a
Merge pull request #1496 from jagerman/turtle-fix
gcc-11 cn-turtle miscompilation fix
2021-10-19 12:33:09 -03:00
Jason Rhinelander
340c99b524 Set up aes flags properly for cn-turtle compilation 2021-10-18 22:23:01 -03:00
Jason Rhinelander
5d6b5e9132 git submodules in parallel 2021-10-18 14:11:52 -03:00
Jason Rhinelander
95f647a139 CI: use lokinet prebuilt image caches
Also reformats, which makes the diff huge.
2021-10-18 14:11:52 -03:00
Thomas Winget
a255889286 minor fixups in sqlitedb wrapper 2021-10-16 22:32:32 -04:00
Jason Rhinelander
ce6050c3d9 And no optimization for apple, too.
It also doesn't compile, because who knows BS with how apple handles
aes, and I hate this cn turtle code.
2021-10-15 20:57:18 -03:00
Jason Rhinelander
290984257f Disable broken intel-optimized build on i386
It doesn't compiler and I can't be arsed to fix it; if someone really
needs 32-bit they probably don't care about performance of turtle
hashing in oxend anyway, so the portable one is fine.
2021-10-15 20:54:12 -03:00
Jason Rhinelander
45e03a4575 Disable LTO for cncrypto on gcc-11
The cn_turtle_hash code makes GCC misoptimization in multiple ways under
LTO, so just force it off for GCC-11 (Hopefully the bugginess gets fixed
by GCC-12).
2021-10-15 20:42:11 -03:00
Jason Rhinelander
62ef3f64b1 Remove useless functions 2021-10-15 19:42:19 -03:00
Thomas Winget
e12f8dc518 fix some bugs in sqlitedb abstraction.
also set BUSY timeout for internal sqlite lib to 5 seconds
2021-10-15 17:21:44 -04:00
Jason Rhinelander
ee62a23550 Fix x86 arch detection
We were *always* falling back to the software implementation because
this define isn't set here.
2021-10-15 15:19:49 -03:00
Jason Rhinelander
7a70914e15 Split up turtle arch branches
Try to make the code a little more followable.
2021-10-15 14:52:23 -03:00
Jason Rhinelander
69ad37daee Remove useless atomic calculations
These are useless and not used anywhere.  Hurray!
2021-10-15 12:46:32 -03:00
Thomas Winget
640adb7aca fix missing include in sqlitedb
also add "maybe get" function to Database class
2021-10-13 20:29:35 -04:00
Thomas Winget
29d64ce902
Merge pull request #1492 from tewinget/sqlitedb
Add SQLiteCpp submodule and base database class using it
2021-10-07 16:47:39 -04:00
Thomas Winget
4ed8ae2614 bump SQLiteCpp submodule version -- should fix mac 2021-10-06 20:01:34 -04:00
Thomas Winget
73e787a9ec sqlitecpp cmake nonsense 2021-10-06 19:36:46 -04:00
Thomas Winget
df07ae3e40 require sqlite foreign_key ON 2021-10-04 22:26:33 -04:00
Jeff
5597fc748b
Update CMakeLists.txt
consolidate the cmake logic
2021-10-04 21:18:08 -04:00
Thomas Winget
435c189a9b sqlitecpp 2021-10-04 20:33:24 -04:00
Sean
578c1c235f
Merge pull request #1484 from jagerman/disable-mms-light
Disable MMS and light wallet support by default
2021-09-06 13:45:16 +10:00
Sean
299cd4e7e7
Merge pull request #1487 from jagerman/fix-sizeof-uptime_proof
CI Build fix - sizeof uptime proof & disable GUI builds
2021-09-06 12:49:51 +10:00
Jason Rhinelander
484eacfa80 Disable GUI wallet CI builds for now
These are currently failing; disable them for now for CI (until we
investigate why they fail and fix them).
2021-09-03 02:19:45 -03:00
Jason Rhinelander
03add6ebe3 Move operator== into namespace
Argument-dependent lookup will find these if in the same namespace as
Proof itself.
2021-09-03 02:17:07 -03:00
Jason Rhinelander
e3999ccb26 Rearrange proof/service node forward declarations to help gcc-8
gcc-8's unique_ptr apparently isn't okay with a forward declared type.
This reverses how proof and service_node_list include/fwd declare each
other to get around it.
2021-09-03 02:15:37 -03:00
Jason Rhinelander
9782155c81
Merge pull request #1481 from jagerman/drop-integration-tests
Drop unmaintained integration test code
2021-09-03 00:28:49 -03:00
Jason Rhinelander
e2a7391fb3
Merge pull request #1482 from darcys22/initialise-uptime-proof-info
Initialise uptime proof info
2021-09-03 00:28:30 -03:00
Jason Rhinelander
5759c41291
Merge pull request #1480 from jagerman/logger-rebrand-updates
Fix missing logger rebrand updates
2021-09-03 00:26:34 -03:00
Jason Rhinelander
2fe49d84c2
Merge pull request #1479 from oxen-io/KeeJef-patch-1
Remove CI indicator and update Loki to Oxen
2021-09-03 00:25:49 -03:00
Jason Rhinelander
357590e826
Merge pull request #1485 from jagerman/fmt-format
Add fmtlib::fmt backport of C++20 std::format
2021-09-03 00:25:24 -03:00
Jason Rhinelander
eefd42f93f Add fmtlib::fmt backport of C++20 std::format
Because I'm tired of waiting for std::format.
2021-09-02 17:25:13 -03:00
Jason Rhinelander
ff8e2dd09d Disable MMS and light wallet support by default
This aren't used or supported by anyone in Oxen land (as far as I know)
and have not been maintained since the beginning, so hide them behind
disabled-by-default cmake options.

This cuts about 10% off the wallet2 compilation time and 3% off the
simplewallet compilation time, plus gets rid of the page of mms crap in
the cli wallet's "help" screen.
2021-09-02 14:03:19 -03:00
Sean Darcy
36a86af3fc more uptime proof initialisations 2021-08-20 15:42:24 +10:00
Sean Darcy
302259ce69 Uninitialised variables 2021-08-20 15:04:07 +10:00
Kee Jefferys
d24ad7c5f8
Update README.md 2021-08-20 11:12:09 +10:00
Jason Rhinelander
5f1bd2f1e4 Drop integration test code.
This code is bitrotting, doesn't compile, and isn't being maintained
anymore.

The integration test suite was an interesting idea, in early Loki days,
but is no longer being maintained and is quite cumbersome to run (for
instance, it is not possible to run it via CI because it depends on
xterm to actually run).  The code to actually run it (in doy-lee's
loki-integration-testing repository) is also a large burden of "janky"
code that isn't worth maintaining.

Remove this from the code; if someone wants to pick it back up in the
future reverting this commit shouldn't be too difficult (though I'd
suggest that a much better approach to integration testing would be to
run different daemons/wallets via rpc commands, as the network-tests do,
rather than trying to feed stdin and parse stdout from running
individual oxends/wallets).
2021-08-19 16:42:15 -03:00
Jason Rhinelander
5b95224c39 Fix some missing LOKI -> OXEN logger defines
Various ones were unchanged in epee.

Also found a couple very old MONERO -> OXEN changes as well.
2021-08-19 16:03:32 -03:00
Kee Jefferys
21202f4b33
Remove CI indicator and update Loki to Oxen 2021-08-17 11:53:43 +10:00
Sean
c81cf6fd3b
Update README.md 2021-08-16 09:05:53 +10:00
Jason Rhinelander
16c15c5d26
Merge pull request #1466 from jagerman/wallet-api-refresh-locks
Add locks around the refresh thread
2021-08-09 22:39:46 -03:00
Jason Rhinelander
040f19de5a
Merge pull request #1469 from darcys22/earlier_transfer
Allow HF18 to be used earlier
2021-07-09 03:03:57 -03:00
Sean Darcy
ff1b25c961 Explanatory message for workaround 2021-07-09 16:02:13 +10:00
Jason Rhinelander
381a3a4ecd Fix hard_fork_info rpc returning wrong earliest_height
With multiple forks on the same major version `get_hard_fork_heights`
was returning the last one instead of the first one.
2021-07-09 02:55:47 -03:00
Sean Darcy
84f6d08baa Allow HF18 to be used earlier
The get earliest version returns HF 18.1 and this means that our blink
fees that were enabled in HF18 are no longer accepted. Push through to
allow the fees to be used 4000 blocks earlier (current height)
2021-07-09 15:29:06 +10:00
Jason Rhinelander
d8662ace7b Add non-blocking isRefreshing(); make height retrieval non-blocking 2021-07-07 18:10:29 -03:00