Howard Chu
573a369a8a
blockchain-stats: print any remaining data at end of loop
...
Fix #8711
2023-01-29 11:09:02 +00:00
Howard Chu
c0f3c5b577
Fix use of rtxn without a mdb_txn_safe wrapper
2022-07-22 12:30:14 +01:00
Howard Chu
033a32a20b
Remove check is_directory check on lmdb path
...
The check interferes with raw device/partition support.
2022-06-03 16:46:47 +01:00
Howard Chu
b096e16699
Revert "db_lmdb: test for mmap support at init time"
...
This reverts commit bd96536637 .
The check interferes with raw device/partition support.
2022-06-03 16:46:35 +01:00
Howard Chu
493577a6cd
Silence spurious fallthru warning
2022-06-03 16:46:18 +01:00
Howard Chu
5c27fd853f
depends: Package cleanup
...
All patching should be in _preprocess_cmd. config_cmd should just run
configure and nothing else before it, otherwise $PATH is broken when it runs.
Also remove redundant settings to configure, _autoconf already sets them.
We leave explicit AR_FLAGS settings because the builtin rule uses ARFLAGS,
and so would leave AR_FLAGS unset otherwise.
2022-05-10 21:06:03 +01:00
Howard Chu
c1d47eb476
Update randomx: fix Mac linking error
...
Also silence randomx malloc exceptions
2022-05-10 21:05:55 +01:00
Howard Chu
7ea1e214c5
Make Mac SDK into a regular depends package
2022-05-09 17:38:48 +01:00
Howard Chu
e81ab9bc2c
Silence some protobuf link warnings
...
4 warnings remain but it's better than before
2022-05-09 17:38:48 +01:00
Howard Chu
fe5c2aec35
Fix arm64 darwin package defs
2022-05-06 16:45:45 +01:00
Howard Chu
fb68465c61
Boost 1.64 doesn't recognize arm64 darwin
2022-05-06 16:45:45 +01:00
Howard Chu
617f9082fe
more... update to clang 9.0.0
2022-05-06 16:45:45 +01:00
Howard Chu
83ae3ad178
Split native_clang out of native_cctools
...
Needed for compiling native_libtapi
2022-05-06 16:45:45 +01:00
Howard Chu
1008318715
Update native_cctools for newer SDK support
2022-05-06 16:45:45 +01:00
Howard Chu
a86c4cb75f
Update to MacOSX SDK 11.1, add Mac M1
2022-05-04 22:33:40 +01:00
Howard Chu
6e6ad80dc4
Fix Android OpenSSL build
...
depends didn't have target-specific overrides for _build_env
so ANDROID_NDK_HOME wasn't being set at build time.
This fix supersedes the manual edit of Configuration/15-android.conf.
Resolves #8095
2021-11-30 04:15:48 +00:00
Howard Chu
a4ebec9afb
Add python method
2021-11-21 01:24:10 +00:00
Howard Chu
0221b01519
Add calcpow RPC
...
Calculate PoW hash for a block candidate
2021-11-20 18:52:05 +00:00
Howard Chu
187633c0ca
slow_hash: don't blow out Mac stack on ARM64
2021-10-30 22:24:55 +01:00
Howard Chu
69c09ad204
Add README to release archives
...
Also add docs/ANONYMITY_NETWORKS.md
Even though there is no "docs" dir in the archive...
2021-10-14 15:30:43 +01:00
Howard Chu
4881154e69
README v12 fork occurred on 2019-11-30 as expected
...
Not just an estimated date.
Also fix whitespace alignment.
Note for future: always use backslash-asterisk if adding this
notation, otherwise it screws up rendering on some MD formatters
2021-10-14 15:26:22 +01:00
Howard Chu
9973edd4c3
ARMv8: detect AES support dynamically
2021-10-10 16:52:30 +01:00
Howard Chu
ae41178c8b
gitian: cleanup more unused packages
...
These appear to be leftovers inherited from Bitcoin's builder
2021-09-27 17:14:03 +01:00
Howard Chu
4ea7832ea7
gitian: omit ccache from gitian builds
...
It's just wasted overhead since the build VMs are always deleted
and recreated fresh for each run.
2021-09-27 17:14:03 +01:00
Howard Chu
5f54dea4ec
LMDB: fix deadlock in resized detection
2021-09-22 15:47:04 +01:00
Howard Chu
4571d3686d
Add simple script for running gitian-build
...
This shell script creates a docker image for running the gitian-build.py
script, to avoid version incompatibilities. The builds may be signed
automatically after manually reviewing the build hashes.
Only docker.io and apt-cacher-ng are required to be installed on the
host. The MacOSX SDK should also be present in this directory if Mac
builds are desired. A container named "gitrun" is used to launch
the builds, and all output will reside in this container as well.
2021-09-04 17:20:29 +01:00
Howard Chu
acef6c955b
Fix parallel make of OpenSSL
2021-08-31 04:38:38 +01:00
Howard Chu
5fe22ac766
ITS#9496 fix mdb_env_open bug from #8704
...
Broken in 9c6eb75c65
2021-04-09 14:21:15 +01:00
Howard Chu
ab5f0ec37a
ITS#9500 fix regression from ITS#8662
...
mdb_load -a patch broke overwriting with MDB_CURRENT
2021-03-23 20:51:19 +00:00
Howard Chu
86263b386c
Honor LARGE_PAGES flag in randomx umask
2021-02-11 14:42:49 +00:00
Howard Chu
5b30203fe9
depends: Update OpenSSL to 1.1.1i
...
Remove some obsolete patches (they were integrated upstream).
Tweak to work with Android support (they second-guess our CC definition, etc).
2020-12-09 19:21:56 +00:00
Howard Chu
91fd634768
Better log message for unusable anon networks
2020-11-16 12:36:37 +00:00
Howard Chu
3247f11638
Silence stupid warnings
2020-11-11 02:34:14 +00:00
Howard Chu
65903d2cfc
Add rpc-restricted-bind-ip option
...
Fixes #6369
2020-10-29 00:22:18 +00:00
Howard Chu
2014a8410a
Force CMAKE_SKIP_RPATH=ON
...
Fix empty RPATH token issue. Only affects Linux and FreeBSD.
2020-10-19 08:58:38 +01:00
Howard Chu
b7dd8349f4
Allow setting start block on export
...
And make import honor the starting block# recorded in a bootstrap file
2020-10-18 14:01:44 +01:00
Howard Chu
5f228e4b7d
Fix lgamma/signgam dependency
...
This is a new indirect dependency due to the use of poisson_distribution,
introduced in PR#6354 commit 67ade8005
2020-10-06 19:25:49 +01:00
Howard Chu
4f01cf4b46
Tweak format, add option for difficulty
...
Set input, output, ringsize averages to 2 decimal places precision
Add option to show min/max/av per-block difficulty
2020-08-03 13:13:14 +01:00
Howard Chu
429d495121
Add options to print daily coin emission and fees
...
Closes #6735
2020-08-01 20:48:42 +01:00
Howard Chu
d745d24333
Don't forget size of prunable txn part
...
Fixes #6732
2020-08-01 13:41:38 +01:00
Howard Chu
c361303184
Silence miner debugmsg spam
...
Don't try to allocate the dataset repeatedly if it has already failed.
2019-12-09 15:59:52 +00:00
Howard Chu
abeed9a767
"Fix" non-determinism in native_cctools build
...
By omitting the otool binary which is built non-deterministically.
We don't use it anyway.
2019-11-18 09:18:00 +00:00
Howard Chu
47d094c0c4
Fix #6147 DB corruption from child process overwrite
...
Don't leave stdout/stderr dangling on a fork.
2019-11-17 14:04:22 +00:00
Howard Chu
2e435dfe76
Fixup compiled python in OSX
2019-11-17 13:44:18 +00:00
Howard Chu
9cbba5a8ec
Fix unwind library ordering
...
Sort objects being archived
2019-11-17 13:44:18 +00:00
Howard Chu
5eea312f6d
Fixup sodium darwin
...
get rid of sodium-darwin.mk special case, unify back with sodium.mk
2019-11-17 13:44:18 +00:00
Howard Chu
b14d9abca9
Use standard time for depends caches
...
streamline, remove obsolete wrappers
2019-11-17 13:44:18 +00:00
Howard Chu
024a1c7ddf
Add ARFLAGS
...
Needed to invoke deterministic mode on some archivers
2019-11-17 13:44:07 +00:00
Howard Chu
35b5e917aa
gitian: add FreeBSD
2019-11-14 07:03:04 +00:00
Howard Chu
cca6e5c645
depends: Add FreeBSD support
2019-11-14 07:03:04 +00:00
Howard Chu
607c01aa56
gitian: Parametrize target platforms
2019-11-14 07:03:04 +00:00
Howard Chu
75c5a04ca5
gitian: Update to latest gitian-builder
2019-11-11 08:35:53 +00:00
Howard Chu
5b78c27c50
Copy LICENSE to all archives
2019-11-04 05:05:38 +00:00
Howard Chu
240dbb1243
gitian: add --rebuild option
...
Avoids delays when sourceforge is slow to respond; allows rebuilding
when disconnected from networks.
2019-11-03 21:14:45 +00:00
Howard Chu
643860776e
Add Android support
2019-11-03 21:14:45 +00:00
Howard Chu
436e4c3363
Fix readline build
...
Make sure it links to our libtinfo from our ncurses build.
Hardcode some basic terminal descriptions into our libtinfo.
Re-enable $HOME/.terminfo support to allow user customization.
Use unlikely terminfo-dir, to prevent accidentally using
differently-configured system databases.
2019-11-03 19:03:31 +00:00
Howard Chu
f54301dd75
Fix for miners on reorg
...
Make sure dataset gets re-init'd if a reorg changes the epoch
2019-10-07 09:50:00 +01:00
Howard Chu
2675cf4483
Update to RandomX v1.1.3, simplify
...
We don't need to detect if the cache has changed, just always
call to set it on the VM. The call will be a no-op if the cache
hasn't changed.
2019-10-05 18:51:20 +01:00
Howard Chu
81c2ad6d5b
RandomX integration
...
Support RandomX PoW algorithm
2019-09-25 21:29:42 +01:00
Howard Chu
fcfa6665a9
Don't set ARCH_ID if it's already set
...
Usually it's unset, but depends toolchain files set it explicitly
for cross-compiling. Don't override preset values. But make sure
it's set for all x86 / x86_64 builds, not just Linux.
Also make sure -std=c++11 is set for Darwin builds, not all
submodules were getting it consistently before.
2019-09-25 20:10:57 +01:00
Howard Chu
5f8524ef5f
Streamline build setup
...
Use shorter, prefix-unique directory names
gitian-builder -> builder
gitian-sigs -> sigs
monero-binaries -> out
Just use builder/inputs/monero, no need for 2nd repo clone
2019-09-24 17:17:04 +01:00
Howard Chu
50ec40ea16
Increase max_dbs from 20 to 32
...
We've added a lot of new indices recently, and 20 isn't enough for them plus
new DBs opened during format migrations.
2019-08-18 17:10:45 +01:00
Howard Chu
8ccc30b163
Fix --restore-date usage
...
The wallet was ignoring --restore-height and --restore-date params and
prompting for them again.
2019-06-16 21:11:33 +01:00
Howard Chu
a182df21d0
Bans for RPC connections
...
Make bans control RPC sessions too. And auto-ban some bad requests.
Drops HTTP connections whenever response code is 500.
2019-06-16 11:38:08 +01:00
Howard Chu
1dc4ebfd6c
Use 9 digit build IDs
2019-06-12 16:47:33 +01:00
Howard Chu
01ced20eca
Delete redundant cppzmq dependency
2019-06-12 10:20:44 +01:00
Howard Chu
f8b2f250b7
Allow parallel make
2019-06-12 09:00:50 +01:00
Howard Chu
3a0fbea1ff
Don't use -march=native
2019-06-12 09:00:44 +01:00
Howard Chu
dd58057126
Remember RPC version on initial connect
...
Don't keep asking for it on an intact connection
Wallet is too chatty over the wire
2019-06-02 09:31:50 +01:00
Howard Chu
b6830db2d4
Fix #5553
...
Make sure the tip hash still matches the cached block
2019-05-19 03:02:33 +01:00
Howard Chu
c746f45d3e
Add hash of top block to /getheight RPC
2019-04-01 01:02:58 +01:00
Howard Chu
8a97563a93
Use threadpool instead of new threads for DNS queries
2019-03-17 15:39:15 +00:00
Howard Chu
b8c2e21cba
Fix startup errors with SSL cert generation
...
Use SSL API directly, skip boost layer
2019-03-08 15:15:24 +00:00
Howard Chu
2a94ec22aa
ITS#8969 tweak mdb_page_split
...
Bump up number of keys for which we use fine-grained splitpoint search
2019-01-30 23:45:48 +00:00
Howard Chu
efec3ed235
Resync to upstream mdb.master
2019-01-17 19:49:26 +00:00
Howard Chu
60b35c91b9
Add --restore-date param
...
Estimate restore height from given date
Check date format early, error out early if invalid
2018-12-14 19:11:35 +00:00
Howard Chu and moneromooo-monero
f6187cd811
epee: speed up parse_hexstr_to_binbuff a little
2018-11-15 23:34:15 +00:00
Howard Chu
a43daebf57
Add stats utility
...
Report statistics from a blockchain DB
2018-10-23 19:43:31 +01:00
Howard Chu
7c790f11f2
Fix rtxn usage in BlockchainLMDB::get_estimated_batch_size
...
Should only stop the rtxn if we actually started it
Fixes Coverity 184960
2018-10-02 16:14:20 +01:00
Howard Chu
fe1256471a
Fixup RENAME_DB() macro
...
Make sure target DB's record is on a writable page
2018-09-25 21:01:03 +01:00
Howard Chu
e9bce045a4
Fix missing std::runtime_error def in difficulty.cpp
2018-09-16 19:35:07 +00:00
Howard Chu
b85acb4cb8
Fix RPC crashes that didn't check for an open wallet
2018-06-15 20:18:41 +01:00
hyc
18cd6837b6
Fix mdb_load append option
...
Use MDB_CURRENT to avoid seeking to new key when appending DUPs.
Reinit cursor on new batch, if appending DUPs.
2018-05-08 06:29:13 +01:00
hyc
9705032618
ITS#8831 move flag init into readhdr
...
Avoid stomping on flags from 1st readhdr invocation
2018-05-08 06:13:21 +01:00
Howard Chu
1d79c14dbb
Revert bb19386b
...
The requirement for CMake 3.2.0 was introduced erroneously
in commit e29282d208 and is no
longer present
2018-03-21 17:16:06 +00:00
Howard Chu
522be96fe4
Fix generating version.cpp
...
Also removes BYPRODUCT dependency on CMake 3.2
2018-03-21 16:33:52 +00:00
Howard Chu
f2bb8085ec
Fix #3297 use the password_prompter helper
2018-02-20 02:25:20 +00:00
Howard Chu
b372ec4375
ITS#8324 More for Win32 NTDLL junk
...
Use GetProcAddress at runtime, avoid buildtime NTDLL link issues
2018-02-18 21:56:55 +00:00
Howard Chu
f3b74e75b0
Fix refresh height estimation
...
Since commit b0426d4c refresh height for a newly created wallet
connected to a sync'd daemon was off by a month. Now we only use
the 1 month safety margin if we're unable to talk to a daemon.
2018-02-16 14:17:36 +00:00
Howard Chu
f689a77e56
Fix #602 Turn on socket keepalive
2018-02-11 23:32:37 +00:00
Howard Chu
84a8b2da14
Don't create readtxn until after txn_safe gate check
2018-01-31 18:18:01 +00:00
Howard Chu
294adc8341
Additional fix for core_tests
...
Reset thread-local info if it doesn't match the current env.
Only happens when a process opens/closes env multiple times in the
same process, doesn't affect monerod.
2017-12-28 20:24:08 +00:00
Howard Chu
d52b732efb
Fix stale readcursor flags
...
Reset thread-specific flags when a write txn is started.
Also remove some redundant start-readtxn code.
2017-12-28 00:59:04 +00:00
Howard Chu
8198f031f3
Add mdb_drop tool
2017-11-19 19:48:01 +00:00
Howard Chu
987eb662bf
More missed readline dependencies thru scoped_message_writer
2017-11-14 22:43:52 +00:00
Howard Chu
29cee4ec4f
Fix 383ff4f689
...
Missed a crypto::null_pkey in PR#2629
2017-11-14 20:36:21 +00:00
Howard Chu
b85e82bf6a
Fix e89994e98f
...
Missed an input_line() change
2017-11-14 20:34:32 +00:00
Howard Chu
95e784ad00
Fix 437421ce42
...
Missing an error argument for an exception
2017-11-14 20:29:05 +00:00
Howard Chu and moneromooo-monero
0d9c0db996
Do not build against epee_readline if it was not built
2017-11-14 17:06:37 +00:00
Howard Chu
7c7d36725a
Increase LMDB maxreaders if large number of threads in use
2017-11-02 16:33:48 +00:00