Commit graph

13931 commits

Author SHA1 Message Date
Jason Rhinelander dbf6c2dd45
Make ghc::filesystem fmt-formattable 2022-10-17 13:45:23 -03:00
Sean Darcy 86dff557a5
trace noop in release build 2022-10-17 13:45:23 -03:00
Jason Rhinelander 7eb357971b
Make sure we are using fmt/spdlog submodules for static builds
Otherwise we can end up linking against libfmt and/or libspdlog
2022-10-17 13:45:23 -03:00
Jason Rhinelander c5157aa15c
For submodules for fmt/spdlog on macos builds
The system-installed versions apparently have some issues.
2022-10-17 13:45:23 -03:00
Jason Rhinelander e23514e093
Fix cmake 3.24 idiotic behaviour
cmake 3.24 defaults to ignoring all archive timestamps, which completely
breaks autotools packages (which rely on timestamps to know when they
need to be autoreconf'd).

Override this stupid default.
2022-10-17 13:45:23 -03:00
Jason Rhinelander a86995c057
sqlite3: update to latest; run autoreconf before configure
At some point the default automake version changed to 1.16, which bionic
doesn't support, so run autoreconf first to make sure it'll work.
2022-10-17 13:45:23 -03:00
Sean Darcy 1217a43e4f
bump readme copyright 2022-10-17 13:45:22 -03:00
Sean Darcy 23dc129dc7
silence unused variable error for if constexpr 2022-10-17 13:45:22 -03:00
Sean Darcy 9d093f1c5a
update windows builds 2022-10-17 13:45:22 -03:00
Sean Darcy 9461cfc674
wallet_api updated to use new json_rpc and logging 2022-10-17 13:45:22 -03:00
Jason Rhinelander 4f701feaea
Remove nasty print-on-destruction wrapper; more fmt 2022-10-17 13:45:22 -03:00
Jason Rhinelander cec9d5db1c
Simplify arg printing; move <iostream> out of header 2022-10-17 13:45:22 -03:00
Jason Rhinelander a91774f2fc
Add formattable helper header
This allows types to more easily opt-in to being to_string formattable
without having to do a full fmt specialization.
2022-10-17 13:45:22 -03:00
Jason Rhinelander 5806fd7825
Change simple fmt::format calls to new "..."_format(...) 2022-10-17 13:45:22 -03:00
Jason Rhinelander 085e9ba963
Unwrap fmt::format with a style argument
oxen::logging handles a style argument now (it is also safer e.g. if the
final formatted string itself intentionally contains {}).
2022-10-17 13:41:45 -03:00
Jason Rhinelander c9934b9f5f
Change most oxen::log::whatever to log::whatever
oxen::log::info(...), etc. are a bit too verbose; this simplifies them
to just `log::info(...)`, etc. by aliasing the `oxen::log` namespace
into most of the common namespaces we use in core.

This result is usage that is shorter but also reads better:

    oxen::log::info(logcat, "blah: {}", 42);

    log::info(logcat, "blah: {}", 42);
2022-10-17 13:41:43 -03:00
Jason Rhinelander 980237a95b
Fix missing oxen logger include when no HIDAPI
oxen_logger was getting included indirectly via something
device_ledger.hpp includes, but that doesn't get included at all if
HIDAPI headers weren't found.
2022-10-17 13:41:12 -03:00
Jason Rhinelander eb4c9ca52d
Dep updates
- oxenmq requires >= .13 for the fmt header
- update oxen-logging with cmake build fix and text style support
2022-10-17 13:41:12 -03:00
Jason Rhinelander 469a6ebdb6
Bump oxen-logging to stable release; fix imported fmt/spdlog targets
The tagged 1.0.0 release includes a fix for the fmt::fmt/spdlog::spdlog
targets not being transitively available.  (It does require a cmake
version bump to 3.13, though, to make it work).
2022-10-17 13:41:12 -03:00
Sean Darcy d7992b5940
Logging Refactor
This replaces the current epee logging system with our oxen::log
library. It replaces the easylogging library with spdlog, removes the
macros and replaces with functions and standardises how we call the
logs.
2022-10-17 13:41:10 -03:00
Jason Rhinelander 0f85299e1f
Merge pull request #1601 from darcys22/virtual-destructor-wallet3
create virtual destructor on wallet class and define destructor on child
2022-10-17 13:39:37 -03:00
Jason Rhinelander 4c68111c9b
Merge pull request #1610 from darcys22/exception-throw-dev
change naked throws to throw exceptions
2022-10-17 13:39:19 -03:00
Jason Rhinelander 7427fb051b
Merge pull request #1607 from jagerman/aux-ping-errors-dev
Allow lokinet/ss to send an error ping
2022-10-17 13:39:03 -03:00
Jason Rhinelander 867b87dc42
Merge pull request #1604 from jagerman/sn-self-info-dev
Put current info for ourself in service node list
2022-10-17 13:38:41 -03:00
Sean Darcy 31b45ce96c
change naked throws to throw exceptions 2022-10-17 13:37:53 -03:00
Jason Rhinelander 467f8ec5ce
Merge pull request #1609 from jagerman/zlib-bump
zlib security update
2022-10-17 13:36:24 -03:00
Sean Darcy a69e6cfa3c change naked throws to throw exceptions 2022-10-17 07:28:34 +11:00
Sean Darcy c33b024037 create virtual destructor on wallet class and define destructor on child 2022-10-17 07:13:43 +11:00
Jason Rhinelander e724a9c086
zlib security update 2022-10-14 22:27:57 -03:00
Jason Rhinelander 46fd75fa90 Allow lokinet/ss to send an error ping
This lets lokinet or SS signal to oxend that something is known to be
wrong, and so oxend should not send a proof so that, hopefully, the
problem gets noticed and fixed.
2022-10-14 21:42:40 -03:00
Jason Rhinelander 06e3713dfc
Put current info for ourself in service node list
Currently we're putting the last-uptime-received data in the service
node list info, even when we have more updated info that hasn't yet been
accepted by the network.

This causes problems for lokinet, in particular, because it ignores any
SNs in the list without ed25519 pubkeys, including itself, which can
result in lokinet thinking it is deregistered for a while after the SN
becomes registered.

This updates `get_service_nodes` to always include current info (rather
than latest proof info) for itself when querying a service node.
2022-10-14 14:12:49 -03:00
Jason Rhinelander e1c3d95dad
Fix get_accrued_batched_earnings being non-public 2022-09-22 12:48:21 -03:00
Sean 3fd153cd02
Merge pull request #1596 from darcys22/fix-uncaught-exception
tests rely on false returned here
2022-09-20 11:16:08 +10:00
Sean Darcy 6e6f3bf5b4 tests rely on false returned here 2022-09-20 08:52:49 +10:00
Sean 52b9d38706
Merge pull request #1593 from darcys22/tests-merge-issues
start of compiler errors
2022-09-13 10:56:58 +10:00
Thomas Winget 4b56bf4e4b all tests building now, not all passing 2022-09-07 19:34:52 -04:00
Sean Darcy 230a8185aa start of compiler errors 2022-09-02 15:38:21 -04:00
Jason Rhinelander d1d580af93
Merge pull request #1594 from jagerman/no-automine
Fix automining by default
2022-09-02 15:24:31 -03:00
Jason Rhinelander 1250a11452
Fix automining by default
wallet3 had changes to miner.cpp frankenstein merge-resolved, which was
resulting in various fields in miner.h being uninitialized.  This fixes
the conflict (and fixes the auto-mine-at-startup from the wallet3 branch
merge).

This reapplies all of the changes from
b9755af4b4 to fix it.
2022-09-02 15:16:33 -03:00
Jason Rhinelander 8dad0a1529
Change dev version to 11.0.0 2022-09-01 18:57:23 -03:00
Jason Rhinelander 2bd874e0b5
Merge remote-tracking branch 'tewinget/wallet3' into dev 2022-09-01 18:56:14 -03:00
Jason Rhinelander c4397d200d
Merge pull request #1592 from jagerman/static-dep-updates
Dependency/submodule updates
2022-08-31 15:01:52 -03:00
Jason Rhinelander d0df2b9684
downgrade boost
1.80.0 breaks hard in an android-sdk build
2022-08-31 14:18:44 -03:00
Jason Rhinelander 39a2cdcf74
Add kitware cmake to bionic build 2022-08-31 14:18:44 -03:00
Jason Rhinelander 600fb3aa96
Dependency/submodule updates 2022-08-31 12:46:53 -03:00
Jason Rhinelander f1ee71a1d4
Merge pull request #1591 from darcys22/atomic-sn-reg-cmd
Atomic values for the get_service_node_registration_cmd endpoint
2022-08-30 23:25:32 -03:00
Jason Rhinelander a2a59ee341
Merge pull request #1589 from jagerman/oxen10-2
Oxen 10.2 version bumps
2022-08-30 21:11:25 -03:00
Sean Darcy 872210608b use new basis points function in rpc_command_executor 2022-08-31 10:02:46 +10:00
Jason Rhinelander 3662cb21fb Remove pre-HF19 registration commands from oxend 2022-08-31 10:01:21 +10:00
Thomas Winget ebbc0e5644 wallet3 changes and demo fixup
demo is vaguely presentable now.  syncing and basic tx send work.
change output was being sent to void (change address was unimplemented)
but that works now as well.
2022-08-30 19:58:51 -04:00