Commit Graph

6016 Commits

Author SHA1 Message Date
moneromooo-monero a98e3b15ac
rpc: make get_output_distribution a non-restricted RPC
so that those nodes can still be used for sending transactions
2018-05-16 21:47:43 +03:00
stoffu ccae806c13
wallet2: set from_height of GET_OUTPUT_DISTRIBUTION correctly
The previous expression

    req_t.from_height = X ? Y >= Z : 0;

forces the parameter to take the value of either 0 or 1.
2018-05-16 21:47:42 +03:00
stoffu 3f5e731d31
wallet2: enable the mitigation only after the fork height 2018-05-16 21:47:42 +03:00
stoffu c455bbf413
wallet2: fix for loading settings of key reuse mitigation 2018-05-16 21:47:42 +03:00
Howard Chu 31ab6076eb
Revert bb19386b
The requirement for CMake 3.2.0 was introduced erroneously
in commit e29282d208 and is no
longer present
2018-05-16 21:47:42 +03:00
Howard Chu 67acb32fff
Fix generating version.cpp
Also removes BYPRODUCT dependency on CMake 3.2
2018-05-16 21:47:42 +03:00
anonimal 30ceb9388f
Build: remove UPnP definition from snap 2018-05-16 15:43:43 +03:00
Mikhail Mitkevichl c0c97c0c07
import_multisig_info: fix sanity check crash in detach_blockchain 2018-05-16 15:40:23 +03:00
moneromooo-monero 2fbbccca6e
wallet2: add missing parameters to get_output_histogram 2018-05-16 15:40:09 +03:00
Thaer Khawaja 2d63dd3c1c
Only log an error if fork version is higher AND is not known. 2018-05-16 15:39:54 +03:00
anonimal b4af8212b6
add submodules 2018-05-16 15:39:36 +03:00
moneromooo-monero 3741fefd9c
mlog: fix setting no logs 2018-05-16 15:24:30 +03:00
Jan Beich 4ee7781c46
epee: Drop deprecated Boost.Thread header
In file included from src/cryptonote_basic/hardfork.cpp:33:
In file included from src/blockchain_db/blockchain_db.h:42:
In file included from src/cryptonote_basic/hardfork.h:31:
contrib/epee/include/syncobj.h:37:10: fatal error: 'boost/thread/v2/thread.hpp' file not found
#include <boost/thread/v2/thread.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/rpc/daemon_handler.cpp:29:
In file included from src/rpc/daemon_handler.h:36:
In file included from src/p2p/net_node.h:41:
In file included from contrib/epee/include/net/levin_server_cp2.h:32:
In file included from contrib/epee/include/net/abstract_tcp_server2.h:324:
contrib/epee/include/net/abstract_tcp_server2.inl:44:10: fatal error: 'boost/thread/v2/thread.hpp' file not found
#include <boost/thread/v2/thread.hpp> // TODO
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

contrib/epee/include/math_helper.h: In member function 'bool epee::math_helper::average<val, default_base>::set_base()':
contrib/epee/include/syncobj.h:227:56: error: 'sleep_for' is not a member of 'boost::this_thread'
 #define  CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));}   epee::critical_region_t<decltype(x)>   critical_region_var(x)
                                                        ^
contrib/epee/include/syncobj.h:227:56: note: in definition of macro 'CRITICAL_REGION_LOCAL'
 #define  CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));}   epee::critical_region_t<decltype(x)>   critical_region_var(x)
                                                        ^~~~~~~~~
contrib/epee/include/syncobj.h:227:56: note: suggested alternative: 'sleep'
 #define  CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));}   epee::critical_region_t<decltype(x)>   critical_region_var(x)
                                                        ^
contrib/epee/include/syncobj.h:227:56: note: in definition of macro 'CRITICAL_REGION_LOCAL'
 #define  CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));}   epee::critical_region_t<decltype(x)>   critical_region_var(x)
                                                        ^~~~~~~~~
2018-05-16 15:24:12 +03:00
rbrunner7 af38d77020
[RELEASE] Fix broken interactive daemon 'limit' commands plus RPC calls 2018-05-16 15:23:35 +03:00
Gene Peters d969ac8f8b
Adding required library (dependency of boost::this_thread::sleep_for) 2018-05-16 15:23:24 +03:00
moneromooo-monero 6881768929
unit_tests: fix build after get_output_distribution signature change 2018-05-16 15:21:16 +03:00
moneromooo-monero 3b4715c495
ringct: do not show verification errors with default settings 2018-05-16 15:21:02 +03:00
moneromooo-monero 9360a0e057
cryptonote: make sure outPk setup always happens 2018-05-16 15:19:58 +03:00
hyc f6b33610a0
ITS#8831 move flag init into readhdr
Avoid stomping on flags from 1st readhdr invocation
2018-05-16 15:18:24 +03:00
hyc 72407cbeb1
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-16 15:18:06 +03:00
moneromooo-monero 68b3bb81cf
blockchain: invalidate misc caches when popping blocks
Might be a bit heavy handed, but conservative.
2018-05-16 15:17:29 +03:00
Thaer Khawaja 4a479d2fcc
Use median timestamp if current time renders a block invalid. 2018-05-14 00:02:10 +03:00
jw 26bdc1e457
Merge pull request #26 from wowario/payment_id
remove payment_id
2018-05-11 18:31:15 -07:00
wowario b881f7521f
remove payment_id 2018-05-09 23:00:01 +03:00
jw 016d9aece4
Merge pull request #25 from wowario/mixin
set static ring size in wallet
2018-05-07 16:23:16 -07:00
wowario d00b812953
set static ring size 2018-05-07 23:30:16 +03:00
jw c0245860d8
Merge pull request #24 from Gingeropolous/patch-1
readme to include experimental code stipulations
2018-05-03 21:20:22 -07:00
Gingeropolous a552fcd930
readme to include experimental code stipulations
Updates the sections in the readme about contributing to stipulate that all experimental code will be considered "safe" for the blockchain and codebase until the USD valuation of 1 wownero reaches $1000. 

After $1000, more extensive review will be necessary.
2018-05-04 00:14:25 -04:00
jw 7f0f4a69cf
Merge pull request #22 from matthewincognito/fix-3350-3574
Fix various wallet bugs
2018-05-01 07:03:16 -07:00
moneromooo-monero a5e0a08e8a wallet2: request transactions in slices when scanning for known rings
This avoid massive memory consumption for huge wallets
2018-05-01 11:13:11 +01:00
moneromooo-monero 1035e47dd0 rpc: allow getting pruned blocks from gettransactions
and get them pruned in find_and_save_rings, since it does not need
the pruned data in the first place.

Also set decode_to_json to false where missing, we don't need this
either.
2018-05-01 11:08:00 +01:00
moneromooo-monero 4e75860da2 wallet2: fix misc issues when the ringdb can't be initialized 2018-05-01 10:52:47 +01:00
jw 022ec18c48
Merge pull request #20 from matthewincognito/stuck-daemon
Fix stuck daemon bug
2018-04-29 09:06:45 -07:00
jw fc8ba5c0a5
Merge pull request #21 from wowario/checkpoints
add checkpoints
2018-04-29 09:06:17 -07:00
wowario 4d477d8e12
add checkpoints 2018-04-28 11:22:58 +03:00
stoffu ac0b4b932f cryptonote_protocol_handler.inl: remove span read just now that failed to pass some basic tests
(cherry picked from commit 3880bf396a)
2018-04-28 08:04:48 +01:00
stoffu 70117562d5 cryptonote_protocol_handler.inl: fix return type mismatches (int vs bool)
(cherry picked from commit da249fd5ba)
2018-04-28 08:04:36 +01:00
jw da6964194f
Merge pull request #19 from wowario/patch-3
fix memory leak for Windows
2018-04-24 06:30:30 -07:00
wowario 4d93e66377
fix memory leak for Windows 2018-04-24 13:09:26 +03:00
jw 785942478b
Merge pull request #17 from wowario/master
fix signed unsigned conversion
2018-04-23 10:18:59 -07:00
wowario adfcdfef02
fix signed unsigned conversion 2018-04-23 19:43:04 +03:00
jw 7d928031f6
Merge pull request #16 from wowario/patch-2
Update LWMA difficulty algorithm
2018-04-23 08:28:58 -07:00
wowario a571be96f4
Update difficulty.cpp
Changed size_t  to match solvetime
2018-04-23 17:50:53 +03:00
jw cd0076c68c
Merge pull request #14 from wowario/patch-1
Update README.md
2018-04-21 04:14:35 -07:00
wowario 4882e3e0e1
Update README.md 2018-04-21 10:29:22 +03:00
jw e8bb8f4984
Merge pull request #13 from matthewincognito/fix-12
Lower number of blocks required to unlock balance
2018-04-20 18:03:14 -07:00
jwinterm 78f1e84139 Set v8 fork height and change version 2018-04-20 17:56:12 -07:00
Matthew Incognito 16feef0522
Lower number of blocks required to unlock balance
Set CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE to 4
2018-04-20 20:53:10 +01:00
jw e4c76da69c
Merge pull request #11 from wowario/dns-checkpoints
added checkpoints, silent DNS warning
2018-04-19 17:31:09 -07:00
wowario 6f9d70b246
add checkpoints 2018-04-19 21:42:48 +03:00