Crypto City
25c78c4f5e
functional_tests: more leeway for discovery tests
2020-11-01 18:59:15 +00:00
Crypto City
98d4ae7c2b
land cost now costs more near the city center and far away
...
also fix overflows in land/tax cost
2020-11-01 17:34:31 +00:00
Crypto City
fa9a377279
add player script variables
2020-11-01 17:33:55 +00:00
Crypto City
86639dcd7d
functional_tests: fix discoveries test after cost increase
2020-11-01 16:47:20 +00:00
mj-xmr
8a282f64c9
Add RELINK_TARGETS, monero_add_target_no_relink and use monero_add_executable/monero_add_library where possible (mj-xmr)
...
Add monero_add_minimal_executable and use in tests
This is done in order not to have to relink targets, when just an .so changed, but not its interface.
2020-10-28 20:08:26 +01:00
Crypto City
e349e5694e
give higher level woods more heating power
2020-10-26 13:09:35 +00:00
Crypto City
08433773e1
cc: make bonuses/penalties size dependent on role
2020-10-26 13:09:35 +00:00
Crypto City
e40212a683
cc: make marble easier to get
2020-10-26 13:09:35 +00:00
Crypto City
f2808a6a39
more tile size optimization
...
Tiles are now stored as a single packed byte stream,
including in the game, and unpacked/repacked as necessary
2020-10-25 18:47:26 +00:00
selsta
e79c88e610
functional_tests: inrease mining timeout
2020-10-22 04:17:11 +02:00
Crypto City
34a4d2b618
fixes after monero merge
2020-10-19 12:17:51 +00:00
Crypto City
43b8112c1e
Merge branch 'master' into cc
2020-10-18 00:33:51 +00:00
Crypto City
cb353a875d
daemon: include nonce to txid map in print_pool
2020-10-17 23:30:31 +00:00
Crypto City
110e1d227e
functional_tests: add an item count consistency check
2020-10-17 23:30:31 +00:00
Crypto City
da5d2a429a
fix a few niggles with broken assert_exception in functional tests
2020-10-17 23:30:31 +00:00
Crypto City
c6fc32a423
functional_tests: fix typo testing balances and remove dead code
2020-10-17 23:30:30 +00:00
Crypto City
29fa6c7222
wood can now be chopped into firewood
2020-10-17 23:30:30 +00:00
Crypto City
7b51ad56bc
WIP - mortgages
2020-10-17 23:29:26 +00:00
Crypto City
9b291c45b3
WIP - mortgages
2020-10-17 23:29:26 +00:00
Crypto City
f7bd04fc12
remove custom item amount field, it is now redundant
...
since we track supply for all items
2020-10-17 23:29:26 +00:00
Crypto City
9586a32958
WIP - mortgages
2020-10-17 23:29:26 +00:00
Crypto City
b033e75db0
add more user data space to custom items
2020-10-17 23:28:43 +00:00
Crypto City
5710bb74dd
WIP - scripts
2020-10-17 23:28:43 +00:00
Lee Clagett
08eb0949f3
Change to more efficient allocation strategy in byte_stream
2020-10-13 15:10:54 +00:00
Lee Clagett
249eae5f4a
Allow byte_stream->byte_slice conversion to shrink unused buffer space
2020-10-13 15:09:18 +00:00
xiphon
a12a8174e0
Dandelion++: skip desynced peers in stem phase
2020-10-12 13:44:06 +00:00
Lee Clagett
7414e2bac1
Change epee binary output from std::stringstream to byte_stream
2020-10-10 15:28:40 +00:00
Crypto City
cd61a1024b
functional_tests: fix game update tests going out of labour
2020-10-07 00:54:17 +00:00
TheCharlatan
db70af1bbc
Unit Tests: Remove block reward upper bound size checks
...
Tests running after being compiled with `make debug-test` failed with
```
[ FAILED ] block_reward_and_current_block_weight.fails_on_huge_median_size
[ FAILED ] block_reward_and_current_block_weight.fails_on_huge_block_weight
```
With the introduction of the patch in
be82c40703 (diff-1a57d4e6013984c420da98d1adde0eafL113)
the assertions checking the weight of the median and current block
against a size limit were removed. Since the limit is now enforced by a
long divisor and a uint64_t type, checking in a separate test makes
little sense, so they are removed here.
2020-10-03 02:32:17 +02:00
Crypto City
bd20a169ec
functional_tests: more city and game update tests
2020-09-29 12:14:10 +00:00
Crypto City
7d495bc49c
core_test: fix core tests (not enough labour)
2020-09-28 21:09:07 +00:00
Crypto City
2ed24f1918
functional_tests: fix repairing from the wrong account in farming test
2020-09-28 21:09:07 +00:00
Crypto City
81ac18db00
rewrite city cost function
2020-09-28 21:09:07 +00:00
Crypto City
31e74fba63
tests: fix a few tests after recent changes
2020-09-28 21:09:07 +00:00
Alexander Blair
2e83628d02
Merge pull request #6840
...
6ee9f1260
fuzz_tests: fix build error in signature fuzz test (moneromooo-monero)
2020-09-27 16:16:54 -07:00
Crypto City
1aba8c4743
functional_tests: fix cc_repair arguments
2020-09-24 19:29:55 +00:00
Crypto City
029375c6dc
unit_tests: fix influence tests from military after related changes
2020-09-24 19:29:55 +00:00
Crypto City
045c9a7c94
core_tests: fix nonce reuse core test
2020-09-24 19:29:55 +00:00
Crypto City
b7c431c15e
remove cost from buy_land command
2020-09-24 19:29:55 +00:00
iamamyth
163f83720f
functional_tests: rewrite mining code, clearer timeout info
2020-09-24 20:04:05 +02:00
moneromooo-monero
6ee9f12607
fuzz_tests: fix build error in signature fuzz test
2020-09-24 15:17:57 +00:00
Crypto City
967ec1957a
unit_tests: add another better test for harvest overflow
2020-09-17 02:30:44 +00:00
Crypto City
d8a3c29b67
cc: increase heating requirements a fair bit
2020-09-17 02:30:44 +00:00
Crypto City
21e095ab90
fix tests after price changes
2020-09-17 02:30:44 +00:00
Crypto City
a389011f3c
add new plant breeding discoveries
2020-09-17 02:30:44 +00:00
Crypto City
fdd27879f1
add merge mining with monero
2020-09-17 02:30:43 +00:00
moneromooo-monero
f11531d046
add_aux_pow now adds aux hashes at fixed slots in the aux merkle tree
...
To protect against mining multiple blocks of a chain with only one PoW
2020-09-16 22:55:06 +00:00
moneromooo-monero
8cf2bb107e
New add_aux_pow RPC to support merge mining
2020-09-13 22:16:07 +00:00
Crypto City
a3ce8f4290
cc: double last resort prices
2020-09-13 22:16:07 +00:00
luigi1111
fd657c7706
Merge pull request #6798
...
4e44306
enable CLSAG support for Trezor client (ph4r05)
2020-09-07 14:30:41 -05:00
Riccardo Spagni
aefa7740c3
Merge pull request #6111
...
d20ff4f64
functional_tests: add a large (many randomx epochs) p2p reorg test (moneromooo-monero)
6a0b3b1f8
functional_tests: add randomx tests (moneromooo-monero)
9d42649d5
core: fix mining from a block that's not the current top (moneromooo-monero)
2020-09-06 15:49:37 +02:00
Dusan Klinec
4e4430603f
enable CLSAG support for Trezor client
2020-09-04 01:24:58 +02:00
luigi1111
ee0b02d0db
Merge pull request #6757
...
6a37da8
threadpool: guard against exceptions in jobs, and armour plating (moneromooo-monero)
2020-09-03 12:25:59 -05:00
Crypto City
9c61486243
unit_tests: fix failure due to reading uninitialized city data
2020-09-02 23:07:03 +00:00
Crypto City
b648ed500a
new resilient soil city specialization, fix nutrients recovery, add tests
2020-09-02 23:07:03 +00:00
Crypto City
c29d308510
cc: protect against integer overflow in intermediate calculations
2020-09-02 23:07:03 +00:00
Crypto City
3714a4e5b0
fix unbound unit tests link error
2020-09-02 23:07:03 +00:00
Crypto City
7a1ba041e8
tests: fix tests failures now that blockchain init queries cities
2020-09-02 23:07:03 +00:00
moneromooo-monero
6a37da837e
threadpool: guard against exceptions in jobs, and armour plating
...
Those would, if uncaught, exit run and leave the waiter to wait
indefinitely for the number of active jobs to reach 0
2020-09-01 14:33:33 +00:00
Crypto City
a8d494074b
coins can now be different gold content based on type
2020-08-30 18:13:56 +00:00
Crypto City
40d58c0c9d
add dependencies where appropriate to make -jN work
2020-08-29 12:17:11 +00:00
Sarang Noether
fa06c39d97
Bind signature to full address and signing mode
2020-08-28 19:38:00 -04:00
moneromooo-monero
743608ec16
wallet: allow signing a message with spend or view key
2020-08-28 19:25:17 -04:00
moneromooo-monero
1dc427def9
core_tests: fix failures after v13
...
v13 enforces claiming the full block reward, so we need to keep
track of tx fees to add them to the coinbase
2020-08-28 00:18:39 +00:00
moneromooo-monero
4a9bd8f70f
core_tests: remove hardcoded hf version
2020-08-28 00:14:04 +00:00
Alexander Blair
44cd8a13ec
Merge pull request #6769
...
b641e0a2c
Add clear method to byte_stream (Lee Clagett)
2020-08-27 12:05:16 -07:00
moneromooo-monero
d20ff4f648
functional_tests: add a large (many randomx epochs) p2p reorg test
2020-08-27 15:13:04 +00:00
moneromooo-monero
6a0b3b1f8a
functional_tests: add randomx tests
2020-08-27 15:13:03 +00:00
moneromooo-monero
9d42649d58
core: fix mining from a block that's not the current top
2020-08-27 15:13:00 +00:00
Sarang Noether
aff87b5f6a
Added balance check to MLSAG/CLSAG performance tests
2020-08-27 12:44:04 +00:00
Sarang Noether
f964a92c57
Updated MLSAG and CLSAG tests for consistency
2020-08-27 12:44:04 +00:00
Sarang Noether
5aa1575e91
CLSAG verification performance test
2020-08-27 12:44:04 +00:00
Sarang Noether
641b08c920
CLSAG optimizations
2020-08-27 12:44:04 +00:00
moneromooo-monero
82ee01699c
Integrate CLSAGs into monero
...
They are allowed from v12, and MLSAGs are rejected from v13.
2020-08-27 12:44:04 +00:00
moneromooo-monero
8cd1d6df8f
unit_tests: add ge_triple_scalarmult_base_vartime test
2020-08-27 12:44:01 +00:00
Sarang Noether
4b328c6616
CLSAG signatures
2020-08-27 12:43:29 +00:00
Alexander Blair
b04da25e4d
Merge pull request #6760
...
844fb4e94
enforce claiming maximum coinbase amount (moneromooo-monero)
2020-08-27 03:01:28 -07:00
Alexander Blair
bad5d8d6f0
Merge pull request #6690
...
7175dcb10
replace most boost serialization with existing monero serialization (moneromooo-monero)
2020-08-27 02:54:30 -07:00
Alexander Blair
3f392341e7
Merge pull request #6660
...
839e1f4ba
functional_tests: add p2p functional tests (moneromooo-monero)
2020-08-27 02:53:41 -07:00
moneromooo-monero
839e1f4bab
functional_tests: add p2p functional tests
...
Tests tx/block propagation and reorgs
2020-08-26 23:00:27 +00:00
Crypto City
964612aed7
game: mac build fixes
2020-08-25 23:02:41 +00:00
Crypto City
16c084838f
add yearly coins auto creation
2020-08-25 15:27:16 +00:00
Crypto City
3335f8d14f
create collectible coins for player count and city levels
2020-08-25 15:27:16 +00:00
Crypto City
7aea6cbf93
add a daemon RPC to get new unused nonces
2020-08-25 13:20:15 +00:00
Crypto City
5b693a15b1
some material variants are now locked till a player level
2020-08-25 13:20:15 +00:00
Crypto City
61844a1f62
start the year a bit earlier so that we can farm right away
2020-08-25 13:20:15 +00:00
Crypto City
bb9bd2ce50
store command nonce in game events log
...
and store a nonce in all commands (except none) now
2020-08-25 13:20:14 +00:00
Crypto City
c688079acb
commands can now be cancelled
...
if they're not mined yet, or only partially matched trades
2020-08-25 13:20:14 +00:00
Crypto City
dc2cc4b6d5
item groups can now optionally be public
2020-08-25 13:20:14 +00:00
Crypto City
61aa85ad3b
add collectible coins
2020-08-21 18:33:02 +00:00
moneromooo-monero
844fb4e940
enforce claiming maximum coinbase amount
...
Claiming a slightly lesser amount does not yield the size gains
that were seen pre rct, so this closes a fingerprinting vector
2020-08-21 12:36:53 +00:00
Lee Clagett
b641e0a2c0
Add clear method to byte_stream
2020-08-17 21:30:34 -04:00
luigi1111
765db1ae7a
Revert "Use domain-separated ChaCha20 for in-memory key encryption"
...
This reverts commit 921dd8dde5
.
2020-08-17 14:08:59 -05:00
moneromooo-monero
7175dcb107
replace most boost serialization with existing monero serialization
...
This reduces the attack surface for data that can come from
malicious sources (exported output and key images, multisig
transactions...) since the monero serialization is already
exposed to the outside, and the boost lib we were using had
a few known crashers.
For interoperability, a new load-deprecated-formats wallet
setting is added (off by default). This allows loading boost
format data if there is no alternative. It will likely go
at some point, along with the ability to load those.
Notably, the peer lists file still uses the boost serialization
code, as the data it stores is define in epee, while the new
serialization code is in monero, and migrating it was fairly
hairy. Since this file is local and not obtained from anyone
else, the marginal risk is minimal, but it could be migrated
later if needed.
Some tests and tools also do, this will stay as is for now.
2020-08-17 16:23:58 +00:00
Alexander Blair
10ad0d7eb2
Merge pull request #6718
...
85efc88c1
Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with unit test (koe)
2020-08-16 12:53:50 -07:00
Alexander Blair
01b512f3a9
Merge pull request #6716
...
76c16822d
wallet2_api: implement runtime proxy configuration (xiphon)
2020-08-16 12:52:21 -07:00
Alexander Blair
a08df6eb1b
Merge pull request #6603
...
4e2377995
Change ZMQ-JSON txextra to hex and remove unnecessary base fields (Lee Clagett)
2020-08-16 12:43:38 -07:00
Alexander Blair
009ca6fcd3
Merge pull request #6601
...
98c151ecb
Optimize ZMQ-JSON vector reading; GetBlocksFast reads 24%+ faster (Lee Clagett)
60627c9f2
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster (Lee Clagett)
fe96e66eb
Fix pruned tx for ZMQ's GetBlocksFast (Lee Clagett)
2020-08-16 12:43:11 -07:00
Alexander Blair
9eebe01c58
Merge pull request #6593
...
6f5411d30
tests: fix missing error on missing python entry point (moneromooo-monero)
c6dc2850c
python-rpc: add missing sync_txpool python entry point (moneromooo-monero)
2020-08-16 12:41:10 -07:00
Alexander Blair
6d29ee6c52
Merge pull request #6493
...
921dd8dde
Use domain-separated ChaCha20 for in-memory key encryption (Sarang Noether)
2020-08-16 12:39:59 -07:00
Alexander Blair
e2e09d00c2
Merge pull request #6337
...
a11ec4ac1
Support for supercop ASM in wallet, and benchmark for supercop (Lee Clagett)
2020-08-16 12:38:44 -07:00
Alexander Blair
13549d590e
Merge pull request #6329
...
6bfcd3101
Updates InProofV1, OutProofV1, and ReserveProofV1 to new V2 variants that include all public proof parameters in Schnorr challenges, along with hash function domain separators. Includes new randomized unit tests. (Sarang Noether)
2020-08-16 12:37:43 -07:00
Crypto City
be0b26ef25
add item groups
2020-08-15 15:12:35 +00:00
Crypto City
26b298e947
performance_tests: add magica voxel load/save test
2020-08-15 15:12:35 +00:00
Crypto City
20427ca382
functional_tests: add new city test
2020-08-15 15:12:35 +00:00
Crypto City
18da33a330
funtional_tests: guard against special events destroying buildings
2020-08-15 15:12:35 +00:00
Lee Clagett
4e2377995d
Change ZMQ-JSON txextra to hex and remove unnecessary base fields
2020-08-14 23:01:00 +00:00
Lee Clagett
fe96e66ebe
Fix pruned tx for ZMQ's GetBlocksFast
2020-08-14 19:46:33 +00:00
Sarang Noether
921dd8dde5
Use domain-separated ChaCha20 for in-memory key encryption
2020-08-09 19:11:54 -04:00
Sarang Noether
6bfcd31015
Updates InProofV1, OutProofV1, and ReserveProofV1 to new V2 variants that include all public proof parameters in Schnorr challenges, along with hash function domain separators. Includes new randomized unit tests.
2020-08-09 18:42:15 -04:00
Alexander Blair
c108c5e2f0
Merge pull request #6354
...
67ade8005
Add randomized delay when forwarding txes from i2p/tor -> ipv4/6 (Lee Clagett)
2020-08-09 06:42:49 -07:00
Crypto City
1e9af40f21
functional_tests: add some more farming tests
2020-08-07 00:41:08 +00:00
Crypto City
1508512920
tests: remove int sqrt test
...
It's slow, and we don't rely on it
2020-08-06 14:15:48 +00:00
Crypto City
0f364a96d7
cc: prevent building too close to the edges of the world
2020-08-05 14:09:06 +00:00
Crypto City
105c45df20
functional_tests: run with CC_FASTER_POW
2020-08-05 14:09:06 +00:00
Crypto City
3b23655a5f
functional_tests: fix game update messing up checks
2020-08-05 14:09:06 +00:00
Crypto City
fb5dd77afa
Farming
2020-08-05 14:09:06 +00:00
Crypto City
db93803916
functional_tests: ensure the resized flag has no building
2020-08-01 17:05:19 +00:00
Crypto City
2a1c79920d
speedup terrain generation
2020-08-01 17:05:19 +00:00
Crypto City
031d32d08e
cc: make cities grow in cost more slowly
2020-07-26 10:31:37 +00:00
Crypto City
34856d0808
keep track of the item supply
2020-07-25 22:43:58 +00:00
Crypto City
b268c5b8c7
add elevation bonus
2020-07-25 22:43:58 +00:00
Crypto City
c598cfec0a
remove building within range of resource generators constraint
2020-07-25 22:43:58 +00:00
Crypto City
664d56f520
Height map
2020-07-25 22:43:53 +00:00
Crypto City
6918004419
cc: fix temperature to heating function
2020-07-24 15:36:50 +00:00
Crypto City
ac171bf477
cc: rewrite potential system and add more potentials
2020-07-24 15:36:50 +00:00
Crypto City
0f71803126
tests: enable unbound tests
2020-07-24 15:36:50 +00:00
koe
85efc88c1e
Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with unit test
2020-07-23 03:36:05 -05:00
xiphon
76c16822d0
wallet2_api: implement runtime proxy configuration
2020-07-20 13:45:12 +00:00
Alexander Blair
3ba6c7fd30
Merge pull request #6516
...
8656a8c9f
remove double includes (sumogr)
2020-07-19 03:34:28 -07:00
Alexander Blair
a0d179e528
Merge pull request #6512
...
5ef0607da
Update copyright year to 2020 (SomaticFanatic)
2020-07-19 03:32:59 -07:00
Alexander Blair
65938d26f6
Merge pull request #6497
...
db8563cb
performance_tests: some windows fixes (moneromooo-monero)
2020-07-19 03:27:55 -07:00
luigi1111
3057f52f89
Merge pull request #6599
...
6e4a55b
rpc: fix relay_tx error return mixup (moneromooo-monero)
9b86e14
functional_tests: add simple relay_tx test (moneromooo-monero)
2020-07-08 17:20:29 -05:00
luigi1111
35e2520115
Merge pull request #6559
...
15538f7
ByteSlice: Fix persisting ptr to std::moved SSO buffer (Doy-lee)
2020-07-08 17:07:50 -05:00
Crypto City
63a3230fdb
add ignore tests
2020-06-30 11:06:08 +00:00
Crypto City
dc140ff2fc
functional_tests: add some more data in get_state
2020-06-29 22:16:08 +00:00
Crypto City
fffeb1bdae
cc: allow hunting with a population less than actual
2020-06-29 22:16:08 +00:00
Crypto City
8c249305f7
unit_tests: don't link to urho3d
2020-06-24 01:06:54 +00:00
Crypto City
09c272a064
tests: add test for building with palette change
2020-06-22 22:15:13 +00:00
Crypto City
6f4fc81b1d
functional_tests: add chat tests
2020-06-22 22:15:13 +00:00
Crypto City
5d30d10b68
functional_tests: add some more invitations tests
2020-06-22 22:15:13 +00:00
Crypto City
3e05ee54fe
tx_pool: do not allow more than one (non kept by block) hunt command at once
2020-06-21 01:18:30 +00:00
Crypto City
ef2c7bcca8
functional_tests: use fast pow
2020-06-21 01:18:29 +00:00
Crypto City
f112b180e3
cc: fix unlocking discoveries bug
2020-06-21 01:18:29 +00:00
Crypto City
206b30cb8f
functional_tests: add reorg test
2020-06-21 01:18:29 +00:00
moneromooo-monero
2743357518
functional_tests: add p2p functional tests
...
Tests tx/block propagation and reorgs
2020-06-21 01:18:29 +00:00
Crypto City
b945e80261
functional_tests: add randomx tests
2020-06-21 01:18:29 +00:00
Crypto City
75516e6e34
core: fix mining from a block that's not the current top
2020-06-21 01:18:29 +00:00
luigi1111
93257997bd
Merge pull request #6656
...
bde7f1c
fuzz_tests: fix init check in oss-fuzz mode (moneromooo-monero)
c4b7420
Do not use PIE with OSS-Fuzz (moneromooo-monero)
c4df8b1
fix leaks in fuzz tests (moneromooo-monero)
38ca1bb
fuzz_tests: add a tx extra fuzz test (moneromooo-monero)
2020-06-19 10:17:51 -05:00
Crypto City
23c813cf45
add city specializations
2020-06-14 23:43:30 +00:00
moneromooo-monero
bde7f1c5cc
fuzz_tests: fix init check in oss-fuzz mode
2020-06-14 16:10:49 +00:00
moneromooo-monero
c4df8b1390
fix leaks in fuzz tests
2020-06-14 12:54:13 +00:00
moneromooo-monero
38ca1bb389
fuzz_tests: add a tx extra fuzz test
2020-06-14 12:54:10 +00:00
selsta
58e1c8b031
repo: update donation fund address
2020-06-09 12:19:39 +02:00
luigi1111
967285a9fa
Merge pull request #6522
...
29e563b
Fixed bugs for take_slice and byte_stream->byte_slice (vtnerd)
2020-06-08 14:05:05 -05:00
Lee Clagett
7aeb503547
Fix boost <1.60 compilation and fix boost 1.73+ warnings
2020-05-31 21:18:11 -04:00
Crypto City
2a90a3df6b
fixes after merge
2020-05-31 00:41:03 +00:00
Crypto City
396157b032
Merge remote-tracking branch 'origin/master' into cc
2020-05-30 18:55:11 +00:00
Crypto City
eb6be814ef
functional_tests: processes can now run in a new terminal (off by default)
2020-05-29 23:20:51 +00:00
Crypto City
3af586f748
unit_tests: fix missing roles in influence test
2020-05-29 23:20:51 +00:00
Crypto City
c22e54b850
unlock_time is now valid only for coinbase txes
2020-05-29 23:20:50 +00:00
Crypto City
4d819324dc
tests: fix missing error on missing python entry point
2020-05-29 23:20:50 +00:00
Crypto City
e98aa10308
cc: don't give an attribute point before levelling up
2020-05-29 23:20:50 +00:00
Crypto City
828bb1ba41
allow destroying a flag
2020-05-29 23:20:50 +00:00
Crypto City
0cc8c0c675
game balance updates after all the recent changes
2020-05-29 23:20:50 +00:00
Crypto City
d2949eb3ff
Change the address prefix from CC to TF
2020-05-29 23:20:49 +00:00
Crypto City
ce07516176
mine only one tx per account per block
2020-05-29 23:20:49 +00:00
Crypto City
cfcae9094d
claim cost in firefighting, flag resizing and city founding
2020-05-29 23:20:49 +00:00
Crypto City
2f77fc4051
invitations
2020-05-29 23:20:49 +00:00
Crypto City
f661248740
functional_tests: add hunt test
2020-05-29 23:20:49 +00:00
Crypto City
e21b669517
functional_tests: fix discovery tests after new discovery additions
2020-05-29 23:20:49 +00:00
Crypto City
a76e62f22c
core: sign create_aaccount commands too
...
with the new pubkey, to prove we know it
2020-05-29 23:20:49 +00:00
Crypto City
98ad361d8a
firefighting
2020-05-29 23:20:45 +00:00
moneromooo-monero
9b86e14c5a
functional_tests: add simple relay_tx test
2020-05-28 12:49:17 +00:00
luigi1111
d6d4a03b85
Merge pull request #6535
...
81773f5
fuzz_tests: refactor and add OSS-Fuzz compatibility (moneromooo-monero)
cb4edc1
cmake: ASAN and PIE don't mix (moneromooo-monero)
2020-05-27 18:27:06 -05:00
moneromooo-monero
6f5411d305
tests: fix missing error on missing python entry point
2020-05-27 13:11:01 +00:00
Crypto City
6a18101b1a
add invitation system
2020-05-26 16:22:42 +00:00
Crypto City
b333b92415
move cc_badge.h away from blockchain_db.h
2020-05-26 16:22:42 +00:00
Doyle
15538f7e3f
ByteSlice: Fix persisting ptr to std::moved SSO buffer
...
The Bug:
1. Construct `byte_slice.portion_` with `epee::span(buffer)` which copies a pointer to the SSO buffer to `byte_slice.portion_`
2. It constructs `byte_slice.storage_` with `std::move(buffer)` (normally this swap pointers, but SSO means a memcpy and clear on the original SSO buffer)
3. `slice.data()` returns a pointer from `slice.portion_` that points to the original SSO cleared buffer, `slice.storage_` has the actual string.
2020-05-20 10:13:58 +10:00
Lee Clagett
a11ec4ac1d
Support for supercop ASM in wallet, and benchmark for supercop
2020-05-16 10:25:17 +00:00
moneromooo-monero
81773f55a4
fuzz_tests: refactor and add OSS-Fuzz compatibility
2020-05-15 17:18:27 +00:00
Lee Clagett
67ade80055
Add randomized delay when forwarding txes from i2p/tor -> ipv4/6
2020-05-15 07:57:35 +00:00
selsta
f35ced6d7f
build: fix boost 1.73 compatibility
2020-05-14 22:57:53 +02:00
Lee Clagett
29e563bb1e
Fixed bugs for take_slice and byte_stream->byte_slice
2020-05-12 01:26:37 -04:00
sumogr
8656a8c9ff
remove double includes
2020-05-11 13:53:17 +00:00
SomaticFanatic
5ef0607da6
Update copyright year to 2020
...
Update copyright year to 2020
2020-05-06 22:36:54 -04:00
luigi1111
9f3e8e3ff0
Merge pull request #6477
...
afe5a55
Revert functional test changes in babf25d
and 5715460
(vtnerd)
2020-05-06 00:26:16 -05:00
Lee Clagett
e5214a2ca2
Adding ZMQ/Pub support for txpool_add and chain_main events
2020-05-04 02:06:35 +00:00
moneromooo-monero
db8563cb46
performance_tests: some windows fixes
...
Too many iterations cause std::bad_alloc for the timings vector,
and the micro prefix displays as some other character, so use u.
Reported by iDunk
2020-05-03 14:11:45 +00:00
Crypto City
06472348cf
WIP - palettes
2020-04-28 15:43:03 +00:00
Lee Clagett
afe5a55e96
Revert functional test changes in babf25d2e
and 571546067
2020-04-24 18:30:23 -04:00
Crypto City
4863f4684e
unit_tests: fix building settings unit test
2020-04-23 13:16:35 +00:00
Crypto City
6ad068d938
make city levels somewhat easier to achieve
2020-04-22 15:14:48 +00:00
Crypto City
3a0571d578
give some slight share/production edge with building age
...
This should make it somewhat more appealing to build an existing building
rather then buy your own land and build a new building on it, given there
is no land scarcity.
2020-04-21 17:41:07 +00:00
luigi1111
c846c8650e
Merge pull request #6445
...
5715460
Always reject duplicate key-images from second txid (vtnerd)
babf25d
Allow unrestricted rpc calls to get full txpool info (vtnerd)
2020-04-21 09:03:37 -05:00
luigi1111
4540afc51b
Merge pull request #6433
...
7326b69
functional_tests: ensure signatures never reuse a timestamp (moneromooo-monero)
082dd2c
functional_tests: ensure signed timestamps are fresh (moneromooo-monero)
2020-04-21 08:54:44 -05:00
luigi1111
06c81b6527
Merge pull request #6359
...
f9441c5
Fixed string_ref usage bug in epee::from_hex::vector (vtnerd)
2020-04-21 08:38:21 -05:00
luigi1111
2d729fbdf7
Merge pull request #6332
...
87d7558
Allow wallet2.h to run in WebAssembly (woodser)
2020-04-21 08:26:54 -05:00
Crypto City
326f4bc3f2
allow repairing many flags in one command
2020-04-15 17:51:31 +00:00
woodser
87d75584e8
Allow wallet2.h to run in WebAssembly
...
- Add abstract_http_client.h which http_client.h extends.
- Replace simple_http_client with abstract_http_client in wallet2,
message_store, message_transporter, and node_rpc_proxy.
- Import and export wallet data in wallet2.
- Use #if defined __EMSCRIPTEN__ directives to skip incompatible code.
2020-04-15 13:22:46 -04:00
Crypto City
3b87070a5d
add hunt system
2020-04-13 17:23:54 +00:00
Crypto City
c7c3944fb0
unit_tests: fix badge score unit tests
2020-04-11 19:11:47 +00:00
Crypto City
bf738e7524
cc: extend the db to store all game events, not just game update ones
2020-04-11 19:02:00 +00:00
Lee Clagett
c26c93019a
Add byte_stream for zero-copy serialization, and add support in ZMQ-JSON.
2020-04-11 04:12:11 +00:00
luigi1111
8185054db7
Merge pull request #6451
...
4ed60b6
Bulletproofs: verification speedup (SarangNoether)
2020-05-02 15:14:41 -05:00
luigi1111
a5cc613a68
Merge pull request #6460
...
f8b1480
unit_tests: fix gcc+ warning (sumogr)
2020-05-01 15:50:19 -05:00
luigi1111
c9b800a787
Merge pull request #6446
...
e509ede
trezor: adapt to new passphrase mechanism (ph4r05)
2020-05-01 15:32:52 -05:00
Dusan Klinec
e509ede2aa
trezor: adapt to new passphrase mechanism
...
- choice where to enter passphrase is now made on the host
- use wipeable string in the comm stack
- wipe passphrase memory
- protocol optimizations, prepare for new firmware version
- minor fixes and improvements
- tests fixes, HF12 support
2020-04-27 18:17:56 +02:00
Sumo Gr
f8b1480f95
unit_tests: fix gcc+ warning
2020-04-18 18:04:20 +03:00
Sarang Noether
4ed60b626a
Bulletproofs: verification speedup
2020-04-14 20:31:30 -04:00
luigi1111
228af683a7
Merge pull request #6403
...
5de2295
Correct key image check in tx_pool (vtnerd)
2020-04-10 16:10:33 -05:00
Crypto City
3c2b07fd15
game: display actual badge counts in badge leaderboard
2020-04-10 01:51:27 +00:00
Crypto City
a0b6a6e8aa
add a dice roll command, for use in story/roleplaying
2020-04-10 01:51:27 +00:00
Crypto City
9153c6f110
Add editable player profile
2020-04-08 11:04:01 +00:00
Crypto City
287fd9cfd1
Add player attributes for storytelling/role playing purposes
2020-04-08 00:15:51 +00:00
moneromooo-monero
7326b691d3
functional_tests: ensure signatures never reuse a timestamp
2020-04-06 16:11:36 +00:00
moneromooo-monero
082dd2c373
functional_tests: ensure signed timestamps are fresh
...
This fixes a test failure now that timestamps are more constrained
2020-04-06 14:06:36 +00:00
Crypto City
3891353d7e
add a new command to destroy owned items
2020-04-04 23:41:15 +00:00
luigi1111
d1f3d3376d
Merge pull request #6381
...
e719760
Fix receive order leakage with tx fluffing (vtnerd)
2020-04-04 13:12:31 -05:00
luigi1111
5757d99208
Merge pull request #6361
...
68a6507
Fixed bug in ZMQ JSON-RPC method field (vtnerd)
2020-04-04 13:01:15 -05:00
luigi1111
0150a480fd
Merge pull request #6357
...
42a7a4d
daemon: auto public nodes - cache and prioritize most stable nodes (xiphon)
2020-04-04 12:59:23 -05:00
luigi1111
cfc0f4a7fa
Merge pull request #6351
...
81c5943
Remove temporary std::string creation in some hex->bin calls (vtnerd)
5fcc23a
Move hex->bin conversion to monero copyright files and with less includes (vtnerd)
3387f0e
Reduce template bloat in hex->bin for ZMQ json (vtnerd)
2020-04-04 12:55:02 -05:00
luigi1111
bf70696a85
Merge pull request #6346
...
dbfa4f8
unit_tests: fix missing test names (xiphon)
2020-04-04 12:50:17 -05:00
luigi1111
c4f75fe898
Merge pull request #6339
...
c61abf8
remove empty statements (shopglobal)
2020-04-04 12:47:31 -05:00
luigi1111
292e2d8f28
Merge pull request #6335
...
0078ce7
wipeable_string: split - treat CR, LF and Tabs as separators (xiphon)
2020-04-04 12:42:50 -05:00
luigi1111
0bd2c14bbb
Merge pull request #6309
...
e69acff
functional_tests: update cookie at 10 seconds interval (moneromooo-monero)
f5a11f0
functional_tests: speed up signature generation (moneromooo-monero)
2020-04-04 12:35:02 -05:00
Crypto City
8f794a4a1e
add temperature and building heating requirements
2020-04-03 15:43:36 +00:00
Crypto City
d7fa5676fe
cc: special events now have a min duration
2020-04-03 15:43:35 +00:00
Crypto City
b3c3647cb9
add food consumption
2020-04-03 15:43:35 +00:00
Crypto City
91465c097b
Rename default town/mayor names and expenses to game
2020-04-03 15:43:35 +00:00
Crypto City
beceb3ce79
cc: bump agricultural building min size requirements
2020-04-03 15:43:35 +00:00
Crypto City
a5d2eb2138
store badge award height
2020-04-03 15:43:35 +00:00
Lee Clagett
da99157462
Use byte_slice for sending zmq messages - removes data copy within zmq
2020-04-03 01:56:17 +00:00
xiphon
6d6af701ec
cryptonote_basic: drop unused verification_context::m_not_rct field
2020-03-31 21:58:25 +00:00
luigi1111
096e2135dd
Merge pull request #6214
...
054b4c7
protocol: request txpool contents when synced (moneromooo-monero)
2020-03-31 13:32:55 -05:00
Lee Clagett
571546067f
Always reject duplicate key-images from second txid
2020-03-30 17:52:42 +00:00
Lee Clagett
babf25d2ec
Allow unrestricted rpc calls to get full txpool info
2020-03-30 17:52:42 +00:00
Lee Clagett
f9441c5759
Fixed string_ref usage bug in epee::from_hex::vector
2020-03-30 16:53:34 +00:00
Lee Clagett
0c29e17581
Fix network unit tests after epee changes
2020-03-28 13:30:22 -04:00
Alexander Blair
7d4a93fab3
Merge pull request #6285
...
d0641b42
net: fix incorrect less operator for top/i2p addresses (Aaron Hook)
2020-03-27 12:23:00 -07:00
Lee Clagett
02d887c2e5
Adding Dandelion++ support to public networks:
...
- New flag in NOTIFY_NEW_TRANSACTION to indicate stem mode
- Stem loops detected in tx_pool.cpp
- Embargo timeout for a blackhole attack during stem phase
2020-03-26 15:01:30 +00:00
moneromooo-monero
f5a11f05fe
functional_tests: speed up signature generation
...
Executing a new binary for each signature can get really slow
2020-03-26 11:33:58 +00:00
moneromooo-monero
e69acffdc8
functional_tests: update cookie at 10 seconds interval
...
Otherwise the daemon will start rejecting
2020-03-26 11:33:55 +00:00
moneromooo-monero
054b4c7f41
protocol: request txpool contents when synced
...
A newly synced Alice sends a (typically quite small) list of
txids in the local tpxool to a random peer Bob, who then uses
the existing tx relay system to send Alice any tx in his txpool
which is not in the list Alice sent
2020-03-22 16:03:31 +00:00
Crypto City
5c198dd7d6
allow resizing flags (when empty)
2020-03-21 16:21:35 +00:00
Aaron Hook
aa93e38862
p2p: remove old debug commands
2020-03-20 22:09:44 -07:00
Crypto City
39163c168a
Event badges can now be awarded after creation
2020-03-20 19:27:51 +00:00
Crypto City
bdb53f11b6
blockchain_db: remove buggy and unused set_cc_account_name
2020-03-20 19:27:51 +00:00
Crypto City
2882f6bc80
badges
2020-03-20 19:27:51 +00:00
Crypto City
0d413cf164
merge cc_account data into a structure
2020-03-20 19:27:51 +00:00
Crypto City
8d3fbb1727
Add ignore machinery
2020-03-20 19:27:51 +00:00
Crypto City
a6b8da5f0e
add player defined custom items
2020-03-20 19:27:51 +00:00
Lee Clagett
5de2295f3c
Correct key image check in tx_pool
2020-03-14 19:17:15 +00:00
Alexander Blair
820ab9fdea
Merge pull request #6273
...
0f78b06e
Various improvements to the ZMQ JSON-RPC handling: (Lee Clagett)
2020-03-12 01:13:49 -07:00
Alexander Blair
092a57df99
Merge pull request #6243
...
4771a7ae
p2p: remove obsolete local time in handshake (moneromooo-monero)
2fbbc4a2
p2p: avoid sending the same peer list over and over (moneromooo-monero)
3004835b
epee: remove backward compatible endian specific address serialization (moneromooo-monero)
39a343d7
p2p: remove backward compatible peer list (moneromooo-monero)
60631802
p2p: simplify last_seen serialization now we have optional stores (moneromooo-monero)
9467b2e4
cryptonote_protocol: omit top 64 bits of difficulty when 0 (moneromooo-monero)
b595583f
serialization: do not write optional fields with default value (moneromooo-monero)
5f98b46d
p2p: remove obsolete local time from TIMED_SYNC (moneromooo-monero)
2020-03-12 00:32:46 -07:00
Lee Clagett
e719760253
Fix receive order leakage with tx fluffing
2020-03-10 22:30:07 -04:00
Lee Clagett
5fcc23ae0a
Move hex->bin conversion to monero copyright files and with less includes
2020-03-09 05:23:59 +00:00
Lee Clagett
0f78b06e8c
Various improvements to the ZMQ JSON-RPC handling:
...
- Finding handling function in ZMQ JSON-RPC now uses binary search
- Temporary `std::vector`s in JSON output now use `epee::span` to
prevent allocations.
- Binary -> hex in JSON output no longer allocates temporary buffer
- C++ structs -> JSON skips intermediate DOM creation, and instead
write directly to an output stream.
2020-03-05 14:20:56 +00:00
Alexander Blair
ff8a60b61c
Merge pull request #6061
...
f1091c41
core_tests: remove some useless verbose logs (moneromooo-monero)
2020-02-28 19:57:13 -08:00
Alexander Blair
4371ac4265
Merge pull request #6225
...
987c3139
print_coinbase_tx_sum now supports 128 bits sums (moneromooo-monero)
2020-02-28 19:48:11 -08:00
Alexander Blair
944e8a4542
Merge pull request #6220
...
a9bdc6e4
Improved performance for epee serialization: (Lee Clagett)
2020-02-28 19:45:31 -08:00
Alexander Blair
e7997cd62a
Merge pull request #6202
...
02b80513
unit_tests: remove invalid bulletproofs unit test (moneromooo-monero)
2020-02-28 19:33:21 -08:00
Crypto City
10f48689f8
propagating fire special event
2020-02-28 19:37:11 +00:00
xiphon
42a7a4dd32
daemon: auto public nodes - cache and prioritize most stable nodes
2020-02-28 08:06:43 +00:00
Crypto City
6c5570b814
special events
2020-02-23 01:31:27 +00:00
Crypto City
e8e5e63996
repairing now uses materials too
2020-02-22 14:17:21 +00:00
Crypto City
30e260511f
unit_tests: add a test for quadtree intersection
2020-02-22 14:17:21 +00:00
Crypto City
52da390658
add town levels (aesthetic only for now) and use weighted shares for subsidy
2020-02-22 14:17:21 +00:00
Crypto City
23c67f33c2
core_tests: fix overlapping land test
2020-02-22 14:17:21 +00:00
Crypto City
6d4f2a20bc
cc: make additional cities scale on 2^n, not 10^n
2020-02-22 14:17:21 +00:00
Crypto City
be7b3bee4a
cc: slash last resort price by 5
2020-02-22 14:17:21 +00:00
Crypto City
11c5ca898b
We can now remove materials already on the blockchain
2020-02-22 14:17:21 +00:00
Crypto City
13040bf4f4
cc: bump min buy size a bit
2020-02-22 14:17:20 +00:00
xiphon
dbfa4f84ee
unit_tests: fix missing test names
2020-02-18 23:56:21 +00:00
Interchained
c61abf87c0
remove empty statements
...
Cleaning up a little around the code base.
2020-02-17 11:55:15 -05:00
Crypto City
c9752a0b3d
some s/monero/townforge/ where appropriate
2020-02-14 13:19:03 +00:00
xiphon
0078ce7fac
wipeable_string: split - treat CR, LF and Tabs as separators
2020-02-12 21:16:07 +00:00
Crypto City
fb8b3af6fd
game: merge faces into larger rectangles for performance
2020-02-11 18:17:16 +00:00
Crypto City
5be5fc483e
functional_tests: add a bit more info to get_state
2020-02-09 15:41:07 +00:00
Crypto City
5f42d3641a
automatic match commands
2020-02-09 15:41:07 +00:00
Alexander Blair
3b224bb99d
Merge pull request #6069
...
d64e5aa7
wallet: allow message sign/verify for subaddresses (moneromooo-monero)
2020-02-06 00:29:32 -08:00
Alexander Blair
25c1bd4714
Merge pull request #6035
...
b90c4bc3
rpc: error out from get_info if the proxied call errors out (moneromooo-monero)
fa16df99
make_test_signature: exit nicely on top level exception (moneromooo-monero)
054b2621
node_rpc_proxy: init some new rpc payment fields in invalidate (moneromooo-monero)
d0faae2a
rpc: init a few missing client_info members (moneromooo-monero)
d56a483a
rpc: do not propagate exceptions out of a dtor (moneromooo-monero)
3c849188
rpc: always set the update field in update on sucess (moneromooo-monero)
2020-02-06 00:26:13 -08:00
Crypto City
a4ea6a7767
ensure generator production does not overflow
2020-01-29 18:44:17 +00:00
Crypto City
aad82022a3
cc: give new towns only the town square
2020-01-28 21:08:20 +00:00
Crypto City
656d583919
cc: some more resources tweaks
2020-01-28 21:08:20 +00:00
Crypto City
456441f34f
functional_tests: speed up signature generation
...
Executing a new binary for each signature can get really slow
2020-01-28 15:05:21 +00:00
Crypto City
73877dcb74
functional_tests: update cookie at 10 seconds interval
...
Otherwise the daemon will start rejecting
2020-01-28 15:05:21 +00:00
Crypto City
4183745da4
add price limit for accrual trades
2020-01-28 15:05:21 +00:00
Crypto City
7c1ea29fac
cc: tweak workforce building
2020-01-28 15:05:21 +00:00
Crypto City
86448078f5
cc: basic residential does not need commercial influence anymore
...
make it just a bonus
2020-01-28 15:05:21 +00:00
moneromooo-monero
b595583f3d
serialization: do not write optional fields with default value
2020-01-26 18:37:30 +00:00
Alexander Blair
40f82b35ae
Merge pull request #6170
...
56a4469e
network: log traffic and add a simple traffic analysis script (moneromooo-monero)
2020-01-25 16:54:24 -08:00
moneromooo-monero
56a4469ef3
network: log traffic and add a simple traffic analysis script
2020-01-26 00:33:41 +00:00
moneromooo-monero
dd8c6b1703
wallet: do not split integrated addresses in address book api
2020-01-26 00:03:53 +00:00
Crypto City
5a4d63f5f1
cc: new match command, matches trades without trading itself
...
This will be useful for trade ussing accrual
2020-01-25 22:18:04 +00:00
Alexander Blair
066c327f73
Merge pull request #6300
...
6f330865
fix tests bug added in #6110 (Dusan Klinec)
2020-01-24 20:23:24 -08:00
Alexander Blair
d1b08c00cf
Merge pull request #6146
...
70c9cd3c
Change to Tx diffusion (Dandelion++ fluff) instead of flooding (Lee Clagett)
2020-01-24 20:06:34 -08:00
Crypto City
fb9e5297e8
auto updating trade prices
...
A trade order can be set to update its price every game update,
allowing auctions of sorts
2020-01-24 15:49:34 +00:00
Crypto City
df17dcdcda
name binaries and relevant files townforge*
2020-01-24 15:49:34 +00:00
Crypto City
f8fddabe81
add a give (items) command
2020-01-24 15:49:34 +00:00
Crypto City
c82864acfc
New cities can now be created, price goes down with world size
2020-01-24 15:49:34 +00:00
Dusan Klinec
6f330865e5
fix tests bug added in #6110
...
- e.g., fixes gen_block_big_major_version test, error: generation failed: what=events not set, cannot compute valid RandomX PoW
- ask for events only if difficulty > 1 (when it really matters)
- throwing an exception changed to logging, so it is easy to spot a problem if tests start to fail.
2020-01-19 17:21:04 +01:00
Aaron Hook
d0641b42fe
net: fix incorrect less operator for top/i2p addresses
2020-01-18 19:18:56 -08:00
Alexander Blair
3acb22b889
Merge pull request #6115
...
27522aaa
core_tests: reset thread pool between tests (moneromooo-monero)
2020-01-16 17:27:15 -08:00
Alexander Blair
50c2fda496
Merge pull request #6110
...
da6c807f
tests: fix HF12 chaingen - construct bc object from events (Dusan Klinec)
2020-01-11 18:08:20 -08:00
Crypto City
302aade6cb
cc: tweak requirements/cost/production
...
Scale all requirements up by 8 times, so small flags have enough
blocks to build something. Larger ones will have too many, but
we don't care since they don't have to use a minimum anymore.
Tweak sawmill/stonecutter so they still get some profit with
those new numbers
2020-01-08 00:07:02 +00:00
Crypto City
feb843c742
rpc: change items from uint32_t[NUM_ITEMS] to std::vector<{uint32_t, uint32_t}>
2020-01-06 21:40:39 +00:00
Crypto City
9fa1ee81ef
functional_tests: add a name to some building settings commands
2020-01-04 13:51:23 +00:00
Crypto City
9e77f9e526
functional_tests: more complex revert tests
2020-01-03 20:33:02 +00:00
Crypto City
559c5f7b2e
fix issues with game update event cache and tests
2020-01-03 16:27:51 +00:00
Crypto City
c13754532c
Remove the unused "commit" version of game update creation
2020-01-01 16:33:15 +00:00
Crypto City
7e4fe631d5
allow large game update commands
2020-01-01 15:14:16 +00:00
Crypto City
18696fe6a1
include construction height in flag trade commands
...
This prevents someone from demolishing their building and selling
the now empty land to a waiting buyer
2019-12-31 11:16:38 +00:00
moneromooo-monero
d64e5aa719
wallet: allow message sign/verify for subaddresses
2019-12-31 08:44:36 +00:00
Crypto City
2e136c18c4
replace more arrays of NUM_ITEMS by a std::map
2019-12-28 16:33:17 +00:00
Crypto City
bdbc367c8e
keep track of building age
2019-12-28 16:33:17 +00:00
Crypto City
c5583c224f
more research tweaking
2019-12-27 17:37:46 +00:00
Crypto City
0d0ac253b9
make budget count against research difficulty decrease instead
2019-12-27 13:52:38 +00:00
Crypto City
eca8f78ea2
tests fix
2019-12-27 01:51:08 +00:00
Crypto City
dbfac813e3
add some research/discoveries tests
2019-12-27 01:51:08 +00:00
Crypto City
bcb5f8e885
unit_tests: fix buy_land test after land cost change
2019-12-26 18:43:19 +00:00
Crypto City
54c462ed22
change item balances from uint32_t[NUM_ITEMS] to std::map<uint32, uint32>
...
We have a lot more item space now, and a lot of it is sparse
2019-12-26 16:23:16 +00:00
Crypto City
3fba4e24a1
unit_tests: fix tests after production changes
...
also a bug in the test code
2019-12-26 01:59:56 +00:00
Crypto City
4fc5db3f78
small research fixes and factor some code
2019-12-25 23:19:02 +00:00
Crypto City
86a1517139
Discoveries and research
2019-12-25 20:36:51 +00:00
Crypto City
513b4564b8
tests: fix after recent changes
2019-12-21 17:57:20 +00:00
Crypto City
ab39221a5e
Add minimum sizes for certain roles/economic power combinations
2019-12-21 17:56:58 +00:00
Crypto City
46ff4e2d31
cc: fix min/max trade expiration to match block target change
2019-12-21 17:56:58 +00:00
Crypto City
51d6704a08
cc: connection_squares now also returns direction
...
of the first building compared to the second building
2019-12-21 17:56:58 +00:00
Crypto City
b9146035de
cc: add adjecent squares calc
...
I'm sure it'll come handy soon
2019-12-21 17:56:58 +00:00
Crypto City
269328d4f1
core_tests: set CC_FAST_POW by default
2019-12-17 13:56:16 +00:00
Crypto City
2cc1144b19
cc: slowly increase land tax with distance from the town center
2019-12-17 13:56:16 +00:00
Crypto City
7eeaa75acd
cc: disable BUILD_RATIO_ACTIVE_THRESHOLD_PERCENT
...
It seemed like a good idea to push people to build, but it
might instead push people to build anything quick even if
they don't have a nice idea yet
2019-12-17 13:56:15 +00:00
Crypto City
2fa0400d72
Fixups after monero rebase, and fix tests after other recent changes
2019-12-14 16:40:46 +00:00
Crypto City
87b2d3e165
we can now build below existing blocks
2019-12-13 01:33:06 +00:00
Crypto City
5cc149c89f
tests: fix tests after recent emission changes
2019-12-13 01:33:06 +00:00
Crypto City
20d7fdb5a3
unit_tests: fix tests after recent emission changes
2019-12-13 01:33:06 +00:00
Crypto City
11cf7f532b
new demolish command
...
Recovers 20% of the flag budget, and the flag may now be reused
for another building role
2019-12-13 01:33:06 +00:00
Crypto City
349ddcb8b2
change emission parameters
...
1 minute target
raise tail emission
decrease the number of decimals to 8
4 game updates per day
2019-12-13 01:32:49 +00:00
Crypto City
b185d9127a
cc: some more tweaking
2019-12-13 01:32:49 +00:00
Crypto City
d54f907d43
add game subsidy
2019-12-13 01:32:49 +00:00
Crypto City
2041f2e4f0
rework production/requirements some
...
Will need more
2019-12-13 01:31:56 +00:00
moneromooo-monero
618338363a
protocol: request txpool contents when synced
...
A newly synced Alice sends a (typically quite small) list of
txids in the local tpxool to a random peer Bob, who then uses
the existing tx relay system to send Alice any tx in his txpool
which is not in the list Alice sent
2019-12-13 01:31:56 +00:00
Crypto City
80d2269217
player names are now unique and format restricted
2019-12-13 01:31:25 +00:00
Crypto City
84f16018d8
wallet_rpc_server: add cc_rename_flag wallet RPC
2019-12-13 01:31:25 +00:00
Crypto City
9770001686
Cities can now have a name
2019-12-13 01:31:25 +00:00
Crypto City
d7063d99d8
flags (with a building) can now be named and renamed
2019-12-13 01:31:25 +00:00
Crypto City
761d212b53
cc: save events to the db
...
This makes them retrievable from a snapshot, after a restart,
and after a reorg that crosses a game update
2019-12-13 01:31:25 +00:00
Crypto City
b89e696a80
flag 0 is now invalid
...
makes it possible to have a "no flag applies" semantic
2019-12-13 01:31:25 +00:00
Crypto City
8f613351ec
daemon: print cc command type in print_pool_sh
2019-12-13 01:31:25 +00:00
Crypto City
3e41959825
players can now select a name when creating an account
2019-12-13 01:31:25 +00:00
moneromooo-monero
fe48fe2790
core_tests: reset thread pool between tests
...
Avoids a DB error (leading to an assert) where a thread uses
a read txn previously created with an environment that was
since closed and reopened. While this usually works since
BlockchainLMDB renews txns if it detects the environment has
changed, this will not work if objects end up being allocated
at the same address as the previous instance, leading to stale
data usage.
Thanks hyc for the LMDB debugging.
2019-12-13 01:31:04 +00:00
Crypto City
be0ebbe148
fix fresh clone build
2019-12-13 01:31:04 +00:00
Crypto City
6b7bb1493b
cc: repair command now takes a delta repair
...
rather than a from/to pair, which avoids it getting invalid if
a game update occurs before it gets mined
2019-12-13 01:31:04 +00:00
Crypto City
c9616f7f83
better error reporting when submitting invalid commands
2019-12-13 01:31:04 +00:00
Crypto City
6d1c0dfcf8
unit_tests: test get_cc_influence does not overflow
2019-12-13 01:30:29 +00:00
Crypto City
b2a77a2b39
cc: building settings costs more labour with distance to generators
2019-12-13 01:30:29 +00:00
Crypto City
b2ce755525
cc: fix get_distance, and add unit tests
2019-12-13 01:30:28 +00:00
Crypto City
c42899adc9
unit_tests: fix missing parameter in flag_t ctor
2019-12-13 01:30:28 +00:00
Crypto City
6386184aa6
functional_tests: check popping all blocks restores initial state
2019-12-13 01:28:54 +00:00
Crypto City
075119b46b
unit_tests: fix overread in influence calculation
2019-12-13 01:28:54 +00:00
Crypto City
c9c91ccb08
cc: add staff (extra payments per building count)
...
to incentivize richer people towards larger buildings rather
than many small ones
2019-12-13 01:28:54 +00:00
Crypto City
341ed8ed53
rejig repair a bit
...
Repair is now 0 before anything is built, and goes to 100% when
building. This makes it easier when building anew after a building
got destroyed due to decay
2019-12-13 01:28:54 +00:00
Crypto City
836b362159
fix reverting buy_land after trading flags
2019-12-13 01:28:21 +00:00
Crypto City
70b4a8f594
Fixes after rebasing onto latest monero
2019-12-13 01:27:46 +00:00
Crypto City
f4c2a09499
functional_tests: add command revert tests
2019-12-13 01:26:54 +00:00
Crypto City
210882c66f
remove tile data and set repair to 0 for derelict buildings
2019-12-13 01:26:54 +00:00
Crypto City
475ff2dcdb
unit_tests: fix cc unit tests build
2019-12-13 01:26:54 +00:00
Crypto City
f92bc5e779
building activation requires a thresold of the budget to be used
2019-12-13 01:21:44 +00:00
Crypto City
e8d072cb8f
functional_tests: fix cc functional tests
2019-12-13 01:21:44 +00:00
Crypto City
84106cbcbe
allow 50-1000 economic level (in steps of 50)
2019-12-13 01:21:44 +00:00
Crypto City
7c2f33c660
game: display "buildable" zone around generators
2019-12-13 01:21:44 +00:00
Crypto City
e484e3eda8
unit_tests: fix tests
2019-12-13 01:21:44 +00:00
Crypto City
d9176ad644
add repair command and UI
2019-12-13 01:21:44 +00:00
Crypto City
1d0ec34f78
setting up buildings needs to have relevant generators nearby
2019-12-13 01:21:44 +00:00
Crypto City
e6b2da4bb9
generators basics
2019-12-13 01:21:44 +00:00
Crypto City
3fb509b796
more work in influence
2019-12-13 01:21:44 +00:00
Crypto City
455c859823
new command to assign items to a flag
2019-12-13 01:21:44 +00:00
Crypto City
5ff843a7a5
functional tests: fix cc tests (adding building settings as a side effect)
2019-12-13 01:21:44 +00:00
Crypto City
445d59c650
city support in game update command
2019-12-13 01:21:04 +00:00
Crypto City
7b26b94e56
make shares 64 bit
2019-12-13 01:21:04 +00:00
Crypto City
346f3e9791
game update
2019-12-13 01:21:04 +00:00
Crypto City
96bbe1857c
keep land if a building decays to 0
2019-12-13 01:20:38 +00:00
Crypto City
6e8c42868d
more work on influence
2019-12-13 01:20:38 +00:00
Crypto City
13f61e7e16
some work on potential
2019-12-13 01:20:38 +00:00
Crypto City
1795477cdd
replace monetary cost by labour cost in building
2019-12-13 01:20:37 +00:00
Crypto City
9b9aed1c56
make blocks and labour items
2019-12-13 01:20:37 +00:00
Crypto City
29a7b2f954
more work on building settings
2019-12-13 01:20:37 +00:00
Crypto City
fb318fbf16
building settings
2019-12-13 01:20:37 +00:00
Crypto City
2bdb7be38c
add role flag field
2019-12-13 01:20:37 +00:00
Crypto City
4e1b8e14b9
add cc influence building blocks
2019-12-13 01:20:37 +00:00
Crypto City
70179de428
potential maps
2019-12-13 01:20:37 +00:00
Crypto City
8a9b3f0e66
more work on game update
2019-12-13 01:20:37 +00:00
Crypto City
2dbab85c58
quadtree: move to cc, and use std::shared_ptr instead of Urho3D's
2019-12-13 01:20:37 +00:00
Crypto City
3b318b5bf4
more work on trade command
2019-12-13 01:20:37 +00:00
Crypto City
1248fc2dc7
more work on trade command
2019-12-13 01:20:37 +00:00
Crypto City
4d351a682a
more work on trade command
2019-12-13 01:20:37 +00:00
Crypto City
5face5e4c6
more work on trade command - accept only one trade for the same flag
2019-12-13 01:19:10 +00:00
Crypto City
96cb892a74
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
af51d16944
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
35a15567fe
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
303267a975
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
2c88df3028
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
ed0defe38e
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
331bfa7a75
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
1979fa16ee
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
2c4d9aa8ab
more work on trade command
2019-12-13 01:19:10 +00:00
Crypto City
8777c1c354
functional_tests: more build tests
2019-12-13 01:19:10 +00:00
Crypto City
32f6fe1f8e
don't use the wallet keys for CC, but a derived key, for privacy
2019-12-13 01:19:10 +00:00
Crypto City
33c36e8d8b
fix up tests after recent changes
2019-12-13 01:18:57 +00:00
Crypto City
257c6279fc
make create_account not a cc_command_base_t subclass
2019-12-13 01:18:57 +00:00
Crypto City
bcd323c987
restore tests
2019-12-13 01:18:57 +00:00
Crypto City
fad8355a7e
add functional tests, a few fixes, and a cc_get_info wallet rpc
2019-12-13 01:18:57 +00:00
Crypto City
b791566140
trade command, and command overhaul it required
2019-12-13 01:18:19 +00:00
Crypto City
b188f4636d
more work on game update command
2019-12-13 01:14:17 +00:00
Crypto City
634e477278
"game" command, for consensus driven changes
2019-12-13 01:12:39 +00:00
Crypto City
98533616d3
add a repair field to flag
2019-12-13 01:12:39 +00:00
Crypto City
9dbb2c2f02
save support for magica models
2019-12-13 01:12:39 +00:00
Crypto City
5d74ba6159
don't accept "short" build commands
...
It'll increase tx size a bit, but is safer
2019-12-13 01:12:39 +00:00
Crypto City
26b36eb282
union/difference selection
2019-12-13 01:12:39 +00:00
Crypto City
8407d97c84
fix cc core tests after tighter checks and cost increases
2019-12-13 01:12:39 +00:00
Crypto City
fe57281088
fix unit tests
2019-12-13 01:12:39 +00:00
Crypto City
822d3796a1
buying blocks in game
2019-12-13 01:12:39 +00:00
Crypto City
5e9c11a642
quadtree fixes and unit tests
2019-12-13 01:10:16 +00:00
Crypto City
8e8344c39f
new core tests for building without enough blocks
2019-12-13 01:10:16 +00:00
Crypto City
d134c0599b
adjust core tests after taking owned blocks into account when building
2019-12-13 01:10:16 +00:00
Crypto City
2369d280dd
buy_blocks command
2019-12-13 01:10:16 +00:00
Crypto City
a9c688a385
improve build core test, fix min height
2019-12-13 01:10:16 +00:00
Crypto City
392e0fc84b
some more build tests, and adjust build cost curve
2019-12-13 01:10:16 +00:00
Crypto City
a2f66c6eb4
more build tests
2019-12-13 01:10:16 +00:00
Crypto City
ef20919721
basic build core tests
2019-12-13 01:10:16 +00:00
Crypto City
917dcd5485
build command
2019-12-13 01:10:16 +00:00
Crypto City
20a2108f94
fix buy land unit test
2019-12-13 01:09:15 +00:00
Crypto City
7b6648b77c
buy_land core tests
2019-12-13 01:09:15 +00:00
Crypto City
647734e59b
remove address book payment_id left after rebase
2019-12-13 01:08:07 +00:00
Crypto City
24f9900670
cleaner code to handle command specific code
...
also add the start of a cc consensus rules class
2019-12-13 01:08:07 +00:00
Crypto City
97c4f99bef
core test for transfering all, leaving nothing for the fee
2019-12-13 01:08:07 +00:00
Crypto City
26519b0820
add cc_transfer wallet RPC
2019-12-13 01:08:07 +00:00
Crypto City
9b8f0a10ea
deposit/withdrawal cc functional tests
2019-12-13 01:08:07 +00:00
Crypto City
b8df9f7adb
even more unit tests
2019-12-13 01:07:45 +00:00
Crypto City
9ba3a6e427
more unit tests
2019-12-13 01:07:45 +00:00
Crypto City
aaf0f5098a
remove now obsolete view public key, abortive subaddress support, etc
2019-12-13 01:07:45 +00:00
Crypto City
0a36d2a12b
unit tests
2019-12-13 01:07:03 +00:00
Crypto City
a57e103b31
rework cc_command
2019-12-13 01:07:03 +00:00
Crypto City
a4bb280922
reject txes that, when combined, spend more than an account's balance
2019-12-13 01:05:09 +00:00
Crypto City
dc153a504e
bare txes
2019-12-13 01:05:08 +00:00
Crypto City
456a856231
new cc_deposit/cc_withdraw wallet commands
2019-12-13 01:02:27 +00:00
Crypto City
44b5d47585
functional_tests: comment out old obsolete tests
2019-12-13 01:02:13 +00:00
Crypto City
be3369cd6b
test popping blocks reverts balance changes
2019-12-13 01:01:05 +00:00
Crypto City
aed6360776
withdraw test
2019-12-13 01:01:05 +00:00
Crypto City
dc79bba19a
tests for invalid signatures
2019-12-13 01:01:05 +00:00
Crypto City
ebcb76aee9
test for going over balance using more than one tx
2019-12-13 01:01:05 +00:00
Crypto City
91064a3581
more tests
2019-12-13 01:01:05 +00:00
Crypto City
649a307097
core_tests: fix get_balance for ringct
2019-12-13 01:01:05 +00:00
Crypto City
2f135eedbd
basic account system and tests
2019-12-13 01:01:05 +00:00
Crypto City
b17da7dd40
transactions can now involved cc accounts (wip)
2019-12-13 01:00:34 +00:00
Crypto City
b9ea0d835c
foo!
2019-12-13 00:55:07 +00:00
luigi1111
a6fa7d493e
Merge pull request #6041
...
261abf7
functional_tests: ensure mining stops on error in mining test (moneromooo-monero)
2019-12-12 13:41:05 -06:00
luigi1111
dad4cf121e
Merge pull request #6018
...
dce6f05
rpc: Only show version string if it matches expected pattern (ndorf)
3293780
daemon: Use rpc for 'version' command (ndorf)
2019-12-12 13:36:05 -06:00
moneromooo-monero
987c3139dc
print_coinbase_tx_sum now supports 128 bits sums
...
The tail emission will bring the total above 64 bits
2019-12-12 01:56:59 +00:00
moneromooo-monero
02b8051339
unit_tests: remove invalid bulletproofs unit test
...
It was intended to check a case which is actually valid (0 gamma),
but was actually duplicating the bad amount test.
Reported by WhatDo_ on IRC.
2019-12-01 15:40:59 +00:00
moneromooo-monero
fa16df9996
make_test_signature: exit nicely on top level exception
...
Coverity 205411
2019-11-27 19:52:38 +00:00
Lee Clagett
68a6507c3f
Fixed bug in ZMQ JSON-RPC method field
2019-11-18 12:59:41 +00:00
Dusan Klinec
da6c807f8b
tests: fix HF12 chaingen - construct bc object from events
2019-11-13 10:11:29 +01:00
Nathan Dorfman
dce6f055f9
rpc: Only show version string if it matches expected pattern
2019-11-12 18:19:24 -07:00
moneromooo-monero
27522aaa12
core_tests: reset thread pool between tests
...
Avoids a DB error (leading to an assert) where a thread uses
a read txn previously created with an environment that was
since closed and reopened. While this usually works since
BlockchainLMDB renews txns if it detects the environment has
changed, this will not work if objects end up being allocated
at the same address as the previous instance, leading to stale
data usage.
Thanks hyc for the LMDB debugging.
2019-11-10 12:58:49 +00:00
Lee Clagett
70c9cd3c9c
Change to Tx diffusion (Dandelion++ fluff) instead of flooding
2019-11-04 09:23:20 +00:00
Lee Clagett
a9bdc6e4c4
Improved performance for epee serialization:
...
- Removed copy of field names in binary deserialization
- Removed copy of array values in binary deserialization
- Removed copy of string values in json deserialization
- Removed unhelpful allocation in json string value parsing
- Removed copy of blob data on binary and json serialization
2019-11-04 01:46:41 +00:00
Lee Clagett
5d7ae2d279
Adding support for hidden (anonymity) txpool
2019-11-02 20:36:03 +00:00
Riccardo Spagni
0183ab78bc
Merge pull request #6060
...
1554a7768
unit_tests: fix use after free (moneromooo-monero)
2019-11-02 17:31:06 +02:00
moneromooo-monero
ebc6ce44f4
cryptonote: untangle dependency from miner to blockchain
...
It causes link errors at least on mac
2019-10-31 01:06:42 +00:00
moneromooo-monero
f1091c410f
core_tests: remove some useless verbose logs
2019-10-30 18:41:31 +00:00
moneromooo-monero
1554a7768b
unit_tests: fix use after free
2019-10-30 18:40:20 +00:00
moneromooo-monero
261abf79e1
functional_tests: ensure mining stops on error in mining test
...
this prevents messing up any subsequent test too
2019-10-27 16:21:30 +00:00
moneromooo-monero
978a61f34f
functional_tests: fix rpc_payment tests with python 3
2019-10-25 23:20:33 +00:00
moneromooo-monero
2899379791
daemon, wallet: new pay for RPC use system
...
Daemons intended for public use can be set up to require payment
in the form of hashes in exchange for RPC service. This enables
public daemons to receive payment for their work over a large
number of calls. This system behaves similarly to a pool, so
payment takes the form of valid blocks every so often, yielding
a large one off payment, rather than constant micropayments.
This system can also be used by third parties as a "paywall"
layer, where users of a service can pay for use by mining Monero
to the service provider's address. An example of this for web
site access is Primo, a Monero mining based website "paywall":
https://github.com/selene-kovri/primo
This has some advantages:
- incentive to run a node providing RPC services, thereby promoting the availability of third party nodes for those who can't run their own
- incentive to run your own node instead of using a third party's, thereby promoting decentralization
- decentralized: payment is done between a client and server, with no third party needed
- private: since the system is "pay as you go", you don't need to identify yourself to claim a long lived balance
- no payment occurs on the blockchain, so there is no extra transactional load
- one may mine with a beefy server, and use those credits from a phone, by reusing the client ID (at the cost of some privacy)
- no barrier to entry: anyone may run a RPC node, and your expected revenue depends on how much work you do
- Sybil resistant: if you run 1000 idle RPC nodes, you don't magically get more revenue
- no large credit balance maintained on servers, so they have no incentive to exit scam
- you can use any/many node(s), since there's little cost in switching servers
- market based prices: competition between servers to lower costs
- incentive for a distributed third party node system: if some public nodes are overused/slow, traffic can move to others
- increases network security
- helps counteract mining pools' share of the network hash rate
- zero incentive for a payer to "double spend" since a reorg does not give any money back to the miner
And some disadvantages:
- low power clients will have difficulty mining (but one can optionally mine in advance and/or with a faster machine)
- payment is "random", so a server might go a long time without a block before getting one
- a public node's overall expected payment may be small
Public nodes are expected to compete to find a suitable level for
cost of service.
The daemon can be set up this way to require payment for RPC services:
monerod --rpc-payment-address 4xxxxxx \
--rpc-payment-credits 250 --rpc-payment-difficulty 1000
These values are an example only.
The --rpc-payment-difficulty switch selects how hard each "share" should
be, similar to a mining pool. The higher the difficulty, the fewer
shares a client will find.
The --rpc-payment-credits switch selects how many credits are awarded
for each share a client finds.
Considering both options, clients will be awarded credits/difficulty
credits for every hash they calculate. For example, in the command line
above, 0.25 credits per hash. A client mining at 100 H/s will therefore
get an average of 25 credits per second.
For reference, in the current implementation, a credit is enough to
sync 20 blocks, so a 100 H/s client that's just starting to use Monero
and uses this daemon will be able to sync 500 blocks per second.
The wallet can be set to automatically mine if connected to a daemon
which requires payment for RPC usage. It will try to keep a balance
of 50000 credits, stopping mining when it's at this level, and starting
again as credits are spent. With the example above, a new client will
mine this much credits in about half an hour, and this target is enough
to sync 500000 blocks (currently about a third of the monero blockchain).
There are three new settings in the wallet:
- credits-target: this is the amount of credits a wallet will try to
reach before stopping mining. The default of 0 means 50000 credits.
- auto-mine-for-rpc-payment-threshold: this controls the minimum
credit rate which the wallet considers worth mining for. If the
daemon credits less than this ratio, the wallet will consider mining
to be not worth it. In the example above, the rate is 0.25
- persistent-rpc-client-id: if set, this allows the wallet to reuse
a client id across runs. This means a public node can tell a wallet
that's connecting is the same as one that connected previously, but
allows a wallet to keep their credit balance from one run to the
other. Since the wallet only mines to keep a small credit balance,
this is not normally worth doing. However, someone may want to mine
on a fast server, and use that credit balance on a low power device
such as a phone. If left unset, a new client ID is generated at
each wallet start, for privacy reasons.
To mine and use a credit balance on two different devices, you can
use the --rpc-client-secret-key switch. A wallet's client secret key
can be found using the new rpc_payments command in the wallet.
Note: anyone knowing your RPC client secret key is able to use your
credit balance.
The wallet has a few new commands too:
- start_mining_for_rpc: start mining to acquire more credits,
regardless of the auto mining settings
- stop_mining_for_rpc: stop mining to acquire more credits
- rpc_payments: display information about current credits with
the currently selected daemon
The node has an extra command:
- rpc_payments: display information about clients and their
balances
The node will forget about any balance for clients which have
been inactive for 6 months. Balances carry over on node restart.
2019-10-25 09:34:38 +00:00
luigi1111
bb2bcf3521
Merge pull request #5972
...
9447e72
cryptonote: add function to get weight from a pruned tx (moneromooo-monero)
2019-10-22 10:52:14 -05:00
luigi1111
84ce43a239
Merge pull request #5966
...
be82c40
Support median block size > 4 GB (moneromooo-monero)
2019-10-22 10:08:32 -05:00
moneromooo-monero
be82c40703
Support median block size > 4 GB
...
add a 128/64 division routine so we can use a > 32 bit median block
size in calculations
2019-10-21 10:41:07 +00:00
luigi1111
441ed9f2fe
Merge pull request #5990
...
515e931
functional_tests: fix transfer test - long payment ids are gone (moneromooo-monero)
2019-10-16 13:54:06 -05:00
moneromooo-monero
515e9316b1
functional_tests: fix transfer test - long payment ids are gone
2019-10-15 20:11:11 +00:00
moneromooo-monero
c65a221549
unit_tests: fix build after rename
2019-10-15 13:15:19 +00:00
luigi1111
fcb4c72bb5
Merge pull request #5943
...
d4d2b5c
p2p+rpc: don't skip p2p or rpc port bind failure by default (xiphon)
2019-10-14 20:05:25 -05:00
moneromooo-monero
4d0aadc081
wallet_rpc_server: don't report integrated addresses for 0 payment ID
...
These are dummy ones
2019-10-14 11:43:48 +00:00
moneromooo-monero
19c0506e14
wallet: remove long payment ID sending support
2019-10-14 11:43:47 +00:00
moneromooo-monero
455f9e3e9f
wallet2: ignore received unencrypted payment IDs (but warn hard)
2019-10-14 11:43:46 +00:00
xiphon
d4d2b5c79a
p2p+rpc: don't skip p2p or rpc port bind failure by default
2019-10-13 13:27:46 +00:00
moneromooo-monero
9447e7276d
cryptonote: add function to get weight from a pruned tx
...
The weight of the prunable data is deterministic from the
unpruned data, so it can be determined from a pruned tx
2019-10-11 12:08:36 +00:00
moneromooo-monero
77afe91db6
unit_tests: fix build with boost 1.69
2019-10-11 01:16:03 +00:00
luigi1111
bf525793c7
Merge pull request #5915
...
8330e77
monerod can now sync from pruned blocks (moneromooo-monero)
2019-10-08 15:55:03 -05:00
luigi1111
0e4ab6091c
Merge pull request #5960
...
ae34e1b
unit_tests: fix ringdb unit tests (moneromooo-monero)
2019-10-08 14:49:57 -05:00
luigi1111
342e7f844f
Merge pull request #5921
...
2a7d915
Fixed i2p/tor tx flooding bug (white noise disabled) (vtnerd)
2019-10-08 14:31:53 -05:00
moneromooo-monero
ae34e1ba1c
unit_tests: fix ringdb unit tests
2019-10-04 21:11:46 +00:00
luigi1111
40501cc131
Merge pull request #5895
...
fdc00d0
unit tests: replace global var with lambda returning static local var (stoffu)
2019-09-30 18:46:34 -05:00
luigi1111
c6430f9dd0
Merge pull request #5893
...
Coverity fixes [3a81639
, 1bd962d
, 2825f07
, d099658
, d46f701
, cd57a10
] (anonimal)
2019-09-30 18:43:48 -05:00
moneromooo-monero
8330e772f1
monerod can now sync from pruned blocks
...
If the peer (whether pruned or not itself) supports sending pruned blocks
to syncing nodes, the pruned version will be sent along with the hash
of the pruned data and the block weight. The original tx hashes can be
reconstructed from the pruned txes and theur prunable data hash. Those
hashes and the block weights are hashes and checked against the set of
precompiled hashes, ensuring the data we received is the original data.
It is currently not possible to use this system when not using the set
of precompiled hashes, since block weights can not otherwise be checked
for validity.
This is off by default for now, and is enabled by --sync-pruned-blocks
2019-09-27 00:10:37 +00:00
Howard Chu
81c2ad6d5b
RandomX integration
...
Support RandomX PoW algorithm
2019-09-25 21:29:42 +01:00
luigi1111
3f6096867d
Merge pull request #5916
...
7b076d5
p2p: fix bans taking port into account (moneromooo-monero)
2019-09-24 10:42:29 -05:00
luigi1111
44aa7d5439
Merge pull request #5882
...
a444f06
blockchain: enforce 10 block age for spending outputs (moneromooo-monero)
2019-09-24 10:27:22 -05:00
luigi1111
06bee964a8
Merge pull request #5878
...
f9b3f6e
Removed Berkeley DB and db switching logic (JesusRami)
2019-09-24 10:10:28 -05:00
luigi1111
ee6e849627
Merge pull request #5877
...
2cd4fd8
Changed the use of boost:value_initialized for C++ list initializer (JesusRami)
4ad191f
Removed unused boost/value_init header (whyamiroot)
928f4be
Make null hash constants constexpr (whyamiroot)
2019-09-24 10:08:44 -05:00
luigi1111
8c41d36a08
Merge pull request #5864
...
32f725d
Properly format multiline logs (moneromooo-monero)
2019-09-24 10:05:21 -05:00
moneromooo-monero
a444f06e53
blockchain: enforce 10 block age for spending outputs
...
Some custom wallet code apparently ignores this, which causes users
of that code to be fingerprinted
2019-09-17 11:39:25 +00:00
moneromooo-monero
48cfcb6313
functional_tests: fix failure on windows removing files
2019-09-17 11:38:34 +00:00
moneromooo-monero
75fe790634
fix wallet python test when run with ctest
2019-09-17 11:38:34 +00:00
moneromooo-monero
6b72541dc0
functional_tests: python3 compatibility
...
and add missing tests
2019-09-17 11:38:33 +00:00
moneromooo-monero
1fac83858a
functional_tests: pop exactly what we need to test before testing
2019-09-17 11:38:31 +00:00
moneromooo-monero
e037ecb014
functional_tests: check for RPC methods which aren't exposed
2019-09-17 11:38:30 +00:00
moneromooo-monero
d53a55204f
functional_tests: add get_transaction_pool_stats
...
Also fix part of the RPC results being returned as binary.
This makes the RPC backward incompatible.
2019-09-17 11:38:29 +00:00
moneromooo-monero
51bd45c352
functional_tests: add save_bc
2019-09-17 11:38:28 +00:00
moneromooo-monero
230f73e121
functional_tests: add is_key_image_spent tests
2019-09-17 11:38:28 +00:00
moneromooo-monero
c148002534
functional_tests: add submitblock test
2019-09-17 11:38:27 +00:00
moneromooo-monero
121c1b9475
functional_tests: check transaction fee is around what we expect
2019-09-17 11:38:26 +00:00
moneromooo-monero
170e51f0d9
functional_tests: add tx_notes tests
2019-09-17 11:38:26 +00:00
moneromooo-monero
4c375c9442
functional_tests: add wallet attributes test
2019-09-17 11:38:25 +00:00
moneromooo-monero
f2e811fced
functional_tests: add rescan_spent/rescan_blockchain tests
2019-09-17 11:38:24 +00:00
moneromooo-monero
4ba8254a1d
functional_tests: add monero: URI tests
2019-09-17 11:38:24 +00:00
moneromooo-monero
cc4be4fa15
wallet: add edit_address_book RPC
2019-09-17 11:38:23 +00:00
moneromooo-monero
4ff40d8d9a
functional_tests: add address book tests
2019-09-17 11:38:22 +00:00
moneromooo-monero
0dc49fc918
functional_tests: add wallet password change, store and tag tests
2019-09-17 11:38:22 +00:00
moneromooo-monero
8e077a5fc0
functional_tests: add spend proof tests
2019-09-17 11:38:21 +00:00
moneromooo-monero
a71d91cecf
functional_tests: add test for mining via wallet
2019-09-17 11:38:20 +00:00
moneromooo-monero
447268cf29
functional_tests: add multisig state tests
2019-09-17 11:38:19 +00:00
moneromooo-monero
43015bb7e3
functional_tests: add get_transfers test
2019-09-17 11:38:19 +00:00
moneromooo-monero
f23beb879e
functional_tests: add missing sweep_dust parameters, and test it
...
though not a very good test, but we don't have dust handy
2019-09-17 11:38:18 +00:00
moneromooo-monero
b9e09378ad
functional_tests: move extraneous stuff out of the framework
2019-09-17 11:38:15 +00:00
moneromooo-monero
7b076d5170
p2p: fix bans taking port into account
2019-09-16 22:45:45 +00:00
moneromooo-monero
32f725d32f
Properly format multiline logs
...
As a side effect, colouring on Windows should now work
regardless of version
2019-09-16 16:58:01 +00:00
Jesus Ramirez
f9b3f6ef3b
Removed Berkeley DB and db switching logic
2019-09-16 16:18:05 +02:00
luigi1111
d663e1e3db
Merge pull request #5818
...
f91a06c
Dropping cppzmq dependency; adding some zmq utils (vtnerd)
2019-09-14 13:25:14 -05:00
luigi1111
29e0f11305
Merge pull request #5823
...
26072f1
blockchain: forbid v1 coinbase from v12 (moneromooo-monero)
555dc7c
core: from v12, require consistent ring size for mixable txes (moneromooo-monero)
d22dfb7
blockchain: reject rct signatures in coinbase txes from v12 (moneromooo-monero)
2019-09-14 13:04:41 -05:00
stoffu
fdc00d0906
unit tests: replace global var with lambda returning static local var
...
Fixes assertion failure (curstate == 1) in random.c in debug mode
2019-09-09 11:44:06 +09:00
luigi1111
d0d76f771a
Merge pull request #5876
...
a5c7eeb
unit_tests: fix build with CLANG 8 and boost 1.69 (moneromooo-monero)
2019-09-08 20:10:44 -05:00
luigi1111
d91393daaf
Merge pull request #5856
...
f56e160
unit_tests: Fix uninitialized values (liptakmatyas)
2019-09-08 20:06:04 -05:00
luigi1111
9325501762
Merge pull request #5855
...
2ec455d
wallet: fix mismatch between two concepts of 'balance' (moneromooo-monero)
2019-09-08 20:04:00 -05:00
anonimal
d46f701515
tests: rct_mlsag: resolve CID 203914 (UNINIT_CTOR)
2019-09-07 00:38:49 +00:00
moneromooo-monero
2ec455df1f
wallet: fix mismatch between two concepts of "balance"
...
One considers the blockchain, while the other considers the
blockchain and some recent actions, such as a recently created
transaction which spend some outputs, but isn't yet mined.
Typically, the "balance" command wants the latter, to reflect
the recent action, but things like proving ownership wants
the former.
This fixes a crash in get_reserve_proof, where a preliminary
check and the main code used two concepts of "balance".
2019-09-05 11:19:34 +00:00
moneromooo-monero
0e2fda5bf0
unit_tests: fix levin unit test on big endian
2019-09-04 14:53:58 +00:00
moneromooo-monero
d046ca1db0
difficulty: fix check_hash on big endian
2019-09-04 14:53:53 +00:00
Jesus Ramirez
2cd4fd8972
Changed the use of boost:value_initialized for C++ list initializer
2019-09-02 14:16:29 +02:00
moneromooo-monero
a5c7eebaea
unit_tests: fix build with CLANG 8 and boost 1.69
2019-08-30 11:43:03 +00:00
luigi1111
98af2e954b
Merge pull request #5793
...
bdfc63a
Add ref-counted buffer byte_slice. Currently used for sending TCP data. (vtnerd)
3b24b1d
Added support for 'noise' over I1P/Tor to mask Tx transmission. (vtnerd)
2019-08-29 14:36:41 -05:00
luigi1111
85014813cf
Merge pull request #5707
...
3a0451a
MLSAG speedup and additional checks (SarangNoether)
2019-08-28 02:22:00 -05:00
Sarang Noether
3a0451a8be
MLSAG speedup and additional checks
2019-08-27 16:22:44 -04:00
Matyas Liptak
f56e160217
unit_tests: Fix uninitialized values
...
- Initialize the `hash` in the `get_block_hash()` function of the
`output_distribution` unit test explicitly, to silence `valgrind`
warnings.
2019-08-27 09:17:34 +02:00
luigi1111
a8e99198bf
Merge pull request #5748
...
b350726
boost: update obsolete usage of endian API (moneromooo-monero)
2019-08-21 15:18:38 -05:00
luigi1111
e72aca57f9
Merge pull request #5511
...
914b106
wallet_rpc_server: use original addresses in destinations in get_transfers (moneromooo-monero)
da694d4
functional_tests: add tests for pending/out transfer addresses (moneromooo-monero)
2019-08-21 14:47:16 -05:00
luigi1111
f205d28e96
Merge pull request #5727
...
7b9a420
Replace std::random_shuffle with std::shuffle (tomsmeding)
2019-08-19 17:31:39 -05:00
luigi1111
2da11baecc
Merge pull request #5718
...
c8709fe
wallet: do not print log settings when unset (moneromooo-monero)
7b18e83
unit_tests: check return values on test data parsing (moneromooo-monero)
2019-08-19 17:17:11 -05:00
moneromooo-monero
26072f1393
blockchain: forbid v1 coinbase from v12
2019-08-19 16:43:52 +00:00
luigi1111
14602ba5ff
Merge pull request #5504
...
eeca5ca
epee: support unicode in parsed strings (moneromooo-monero)
3e11bb5
functional_tests: test creating wallets with local language names (moneromooo-monero)
2019-08-17 15:22:46 -05:00
luigi1111
50c8147568
Merge pull request #5490
...
1a93aa4
functional_tests: add get_fee_estimate to blockchain test (moneromooo-monero)
2019-08-17 15:20:15 -05:00
moneromooo-monero
3e11bb540e
functional_tests: test creating wallets with local language names
2019-08-16 17:06:08 +00:00
moneromooo-monero
eeca5ca0c8
epee: support unicode in parsed strings
2019-08-16 17:06:03 +00:00
luigi1111
f06c77ab72
Merge pull request #5677
...
a5127cc
tests: functional: fix python syntax (radfish)
2019-08-15 17:24:31 -05:00
luigi1111
86ee631212
Merge pull request #5652
...
f81cb4f
unit_tests: add more leeway to the 'same distribution' check (moneromooo-monero)
2019-08-15 17:13:18 -05:00
Tom Smeding
7b9a420787
Replace std::random_shuffle with std::shuffle
...
According to [1], std::random_shuffle is deprecated in C++14 and removed
in C++17. Since std::shuffle is available since C++11 as a replacement
and monero already requires C++11, this is a good replacement.
A cryptographically secure random number generator is used in all cases
to prevent people from perhaps copying an insecure std::shuffle call
over to a place where a secure one would be warranted. A form of
defense-in-depth.
[1]: https://en.cppreference.com/w/cpp/algorithm/random_shuffle
2019-08-15 16:33:15 +02:00
luigi1111
1ed2c40436
Merge pull request #5498
...
6eb2638
functional_tests: add a 3/3 multisig test (moneromooo-monero)
2019-08-14 15:29:24 -05:00
luigi1111
2258551ef9
Merge pull request #5487
...
df83ed7
consensus: from v12, enforce >= 2 outputs (moneromooo-monero)
2019-08-14 15:26:55 -05:00
moneromooo-monero
7d9b7fee43
functional_tests: add validate_address tests
2019-07-29 14:29:20 +00:00
Lee Clagett
2a7d91523b
Fixed i2p/tor tx flooding bug (white noise disabled)
2019-07-29 12:27:00 +00:00
luigi1111
f2acbd6b19
Merge pull request #5621
...
c88d6a9
tests: fixed file exec permissions (ston1th)
2019-07-24 14:36:43 -05:00
luigi1111
7fc76451a5
Merge pull request #5529
...
de27651
use crypto::rand instead of libc rand in a few tests (moneromooo-monero)
2019-07-24 14:06:11 -05:00
luigi1111
a29a89bdf4
Merge pull request #5507
...
2b198a6
difficulty-tests: remove spurious dependency on cryptonote_core (moneromooo-monero)
2019-07-24 13:58:13 -05:00
luigi1111
e3de4aa68b
Merge pull request #5502
...
25a7cfd
add a few checks where it seems appropriate (moneromooo-monero)
1a66a86
remove unused code (moneromooo-monero)
2019-07-24 13:57:06 -05:00
luigi1111
4c4586ca7b
Merge pull request #5473
...
ddf7890
python-rpc: add missing getblock RPC parameters (moneromooo-monero)
2019-07-24 13:55:12 -05:00
Lee Clagett
f91a06c6d7
Dropping cppzmq dependency; adding some zmq utils
2019-07-22 06:37:16 +00:00
Lee Clagett
3b24b1d082
Added support for "noise" over I1P/Tor to mask Tx transmission.
2019-07-17 14:22:37 +00:00
Lee Clagett
bdfc63ae4d
Add ref-counted buffer byte_slice. Currently used for sending TCP data.
2019-07-16 16:30:35 +00:00
moneromooo-monero
65c4004963
allow blocking whole subnets
2019-07-16 11:35:53 +00:00
luigi1111
fd3ff74164
Merge pull request #5746
...
3140a37
wallet_rpc_server: fix get_bulk_payments with short payment ids (moneromooo-monero)
2019-07-12 20:28:15 -05:00
moneromooo-monero
b350726a5a
boost: update obsolete usage of endian API
2019-07-09 15:07:13 +00:00
moneromooo-monero
3140a378da
wallet_rpc_server: fix get_bulk_payments with short payment ids
2019-07-09 14:39:44 +00:00
moneromooo-monero
c2238327d0
keccak: guard against misaligned memory accesses on ARM
...
The code generated is exactly the same as the direct access
one on x86_64
2019-07-04 22:13:16 +00:00
moneromooo-monero
7b18e838ea
unit_tests: check return values on test data parsing
...
Won't trigger in practice, but you never know when that code changes
Coverity 199723, 199685
2019-07-01 15:17:30 +00:00
redfish
a5127cca89
tests: functional: fix python syntax
2019-06-19 21:41:37 -04:00
moneromooo-monero
f81cb4f24b
unit_tests: add more leeway to the "same distribution" check
...
This is an inherently probabilistic check, which occasionally fails
for a matching distribution
2019-06-16 12:18:28 +00:00
ston1th
c88d6a9e5b
tests: fixed file exec permissions
2019-06-09 17:00:45 +02:00
Riccardo Spagni
51766d026b
Merge pull request #5583
...
77594c4f
functional_tests: fix python3 compatibility (moneromooo-monero)
2019-06-01 20:27:41 +02:00
Riccardo Spagni
42e2ed31ae
Merge pull request #5558
...
4ac52e52
functional_tests: fix rare get_output_distribution failure (moneromooo-monero)
2019-06-01 20:21:22 +02:00
moneromooo-monero
77594c4f4a
functional_tests: fix python3 compatibility
...
Also add missing bans test to the default tests
2019-05-29 11:59:48 +00:00
moneromooo-monero
4ac52e523d
functional_tests: fix rare get_output_distribution failure
...
When the wallet auto refreshes after mining the last two blocks
but before popping them, it will then try to use outputs which
are not unlocked yet. This is really a wallet problem, which
will be fixed later.
2019-05-20 13:45:36 +00:00
moneromooo-monero
dbecfe7d5d
unit_tests: make the density test a bit less stringent
...
It's an inherently random test
2019-05-20 10:42:50 +00:00
Rohaq
1873af35bf
Made code block usage consistent across all .md files
2019-05-12 05:16:26 +01:00
moneromooo-monero
de27651f80
use crypto::rand instead of libc rand in a few tests
...
We don't need secure randomness here, but it should shut coverity up
2019-05-10 14:15:35 +00:00
moneromooo-monero
ddf7890730
python-rpc: add missing getblock RPC parameters
2019-05-09 11:48:54 +00:00
Riccardo Spagni
f64f59627d
Merge pull request #5510
...
e9809382
fix wide difficulty conversion with some versions of boost (moneromooo-monero)
2019-05-07 17:36:27 +02:00
Riccardo Spagni
97cb1c9436
Merge pull request #5508
...
1c44e658
wallet2: reject standalone short payment IDs in monero: URI API (moneromooo-monero)
2019-05-07 17:35:28 +02:00
Riccardo Spagni
2d04b0e500
Merge pull request #5499
...
a4c4a2d8
blockchain: keep a rolling long term block weight median (moneromooo-monero)
2019-05-07 17:31:45 +02:00
Riccardo Spagni
9d91301faa
Merge pull request #5496
...
0eb0d6b8
rpc: improve get_output_distribution (moneromooo-monero)
2019-05-07 17:30:27 +02:00
Riccardo Spagni
123df0eaf7
Merge pull request #5419
...
f29fecd5
build: debug and test builds via contrib (Dusan Klinec)
2019-05-07 17:26:32 +02:00
moneromooo-monero
a4c4a2d8aa
blockchain: keep a rolling long term block weight median
2019-05-02 09:47:01 +00:00
Riccardo Spagni
2bf855e3cd
Merge pull request #5497
...
a59c2746
unit_tests: fix crash in debug in output_distribution test (moneromooo-monero)
2019-05-02 11:30:51 +02:00
Riccardo Spagni
17f31c3d51
Merge pull request #5484
...
36ced067
functional_tests: flush stdout before popening new process (moneromooo-monero)
2019-05-02 11:29:12 +02:00
moneromooo-monero
da694d418a
functional_tests: add tests for pending/out transfer addresses
2019-05-02 09:04:42 +00:00
moneromooo-monero
e980938210
fix wide difficulty conversion with some versions of boost
2019-05-01 19:58:09 +00:00
moneromooo-monero
1c44e65863
wallet2: reject standalone short payment IDs in monero: URI API
2019-05-01 18:41:39 +00:00
moneromooo-monero
2b198a6875
difficulty-tests: remove spurious dependency on cryptonote_core
2019-05-01 10:35:33 +00:00
moneromooo-monero
1a66a86f94
remove unused code
2019-04-29 20:52:40 +00:00
moneromooo-monero
25a7cfdb4a
add a few checks where it seems appropriate
2019-04-29 20:52:40 +00:00
moneromooo-monero
6eb2638463
functional_tests: add a 3/3 multisig test
2019-04-26 15:35:42 +00:00
moneromooo-monero
a59c27465b
unit_tests: fix crash in debug in output_distribution test
...
updating the block size limit needs recent block sizes,
so we feed it dummy ones
2019-04-25 22:49:10 +00:00
moneromooo-monero
0eb0d6b802
rpc: improve get_output_distribution
...
It can now handle small reorgs without having to rescan the
whole blockchain.
Also add a test for it.
2019-04-25 16:49:29 +00:00
Riccardo Spagni
973405018f
Merge pull request #5483
...
c0736643
unit_tests: don't delete log file on windows, it will fail (moneromooo-monero)
2019-04-24 22:40:40 +02:00
Riccardo Spagni
eb1da46ac1
Merge pull request #5467
...
aba2b2e7
functional_tests: reset blockchain on test start (moneromooo-monero)
375fde94
hardfork: fix off by one updating fork index after popping (moneromooo-monero)
2019-04-24 22:37:16 +02:00
moneromooo-monero
1a93aa4b79
functional_tests: add get_fee_estimate to blockchain test
2019-04-24 13:27:35 +00:00
moneromooo-monero
df83ed74e4
consensus: from v12, enforce >= 2 outputs
2019-04-23 22:09:35 +00:00
moneromooo-monero
36ced06727
functional_tests: flush stdout before popening new process
2019-04-23 18:22:09 +00:00
moneromooo-monero
c07366430a
unit_tests: don't delete log file on windows, it will fail
2019-04-23 15:27:54 +00:00
moneromooo-monero
aba2b2e7a2
functional_tests: reset blockchain on test start
2019-04-20 11:28:19 +00:00
Lee Clagett
55aae6a9a3
Fix socks tests in windows and handle errors better
2019-04-19 01:10:02 -04:00
Riccardo Spagni
ef1f1c5314
Merge pull request #5465
...
3e50a9e8
functional_tests: detect requests python module (moneromooo-monero)
2019-04-18 22:14:44 +02:00
moneromooo-monero
3e50a9e8fc
functional_tests: detect requests python module
2019-04-18 19:33:01 +00:00
moneromooo-monero
35e0a968bd
wallet2: "output lineup" fake out selection
...
Based on python code by sarang:
https://github.com/SarangNoether/skunkworks/blob/outputs/outputs/simulate.py
2019-04-18 15:14:38 +00:00
Riccardo Spagni
7973fb6a69
Merge pull request #5415
...
299052bc
Remove unneeded SFINAE on check_tx/block verification in core_tests (Doyle)
2019-04-17 08:28:16 +02:00
Riccardo Spagni
e9464eb5e3
Merge pull request #5413
...
5fafb90e
testdb: add override keyword where missing (stoffu)
2019-04-17 08:27:36 +02:00
stoffu
5fafb90e91
testdb: add override keyword where missing
...
and delete obsolete BlockchainBDB::get_tx_output_indices along the way
2019-04-17 10:26:25 +09:00
Doyle
299052bca3
Remove unneeded SFINAE on check_tx/block verification in core_tests
2019-04-17 10:43:14 +10:00
moneromooo-monero
e3dea47859
unit_tests: undo is_blocked implementation factoring
...
The is_host_blocked method is not on master yet
2019-04-16 22:23:15 +00:00
Riccardo Spagni
f376cd5605
Merge pull request #5446
...
7d79222f
daemon: remove debug info (moneromooo-monero)
8fec0f98
functional_tests: add sweep_single test (moneromooo-monero)
9880d61b
wallet_rpc_server: remove unused code (moneromooo-monero)
8a61b33d
rpc: omit irrelevant fields for pool txes in gettransactions (moneromooo-monero)
56508524
rpc: add relayed in get_transaction output (moneromooo-monero)
82e510f1
rpc: set default log category in core_rpc_server.h (moneromooo-monero)
2019-04-16 22:46:29 +02:00
Riccardo Spagni
8d16e92dcb
Merge pull request #5425
...
58585986
p2p: fix integer overflow in host bans (moneromooo-monero)
2019-04-16 22:38:56 +02:00
Riccardo Spagni
a1ea611e24
Merge pull request #5424
...
93bb2f48
ringct: prevent use of full ringct signatures for more than one input (moneromooo-monero)
2019-04-16 22:38:32 +02:00
Riccardo Spagni
0d2aaac15b
Merge pull request #5414
...
e9fac29a
unit_tests/long_term_block_weight: some tweaks that seem to make more sense (stoffu)
467f4c7e
tests/block_weight: use integer division when computing median (stoffu)
815d08dc
tests/block_weight: remove unused MULTIPLIER_SMALL (stoffu)
661f1fb8
blockchain: remove unused calc of short_term_constraint (stoffu)
2019-04-16 22:37:02 +02:00
Riccardo Spagni
45a4145f87
Merge pull request #5409
...
ac874e2d
tests: fix test_options initialization error (Dusan Klinec)
2019-04-16 22:34:30 +02:00
Riccardo Spagni
46c477ab30
Merge pull request #5400
...
5e673c03
blockchain_db: fix db txn ending too early (moneromooo-monero)
2019-04-16 22:30:40 +02:00
moneromooo-monero
8fec0f9831
functional_tests: add sweep_single test
2019-04-15 09:13:31 +00:00
Riccardo Spagni
9bd0983d5e
Merge pull request #5402
...
cbf32241
rpc: make wide_difficulty hexadecimal (moneromooo-monero)
2019-04-15 09:18:10 +02:00
Riccardo Spagni
e31559d319
Merge pull request #5398
...
41901b8d
device/trezor: env-configurable ports (Dusan Klinec)
c97a1f79
tests: trezor tests fixes and improvements (Dusan Klinec)
2019-04-15 09:17:47 +02:00
Riccardo Spagni
07c1734985
Merge pull request #5393
...
c5d3ea2f
tests: add a few try/catch in main to shut coverity up (moneromooo-monero)
2019-04-15 09:14:48 +02:00
moneromooo-monero
5e673c03fe
blockchain_db: fix db txn ending too early
...
The db txn in add_block ending caused the entire overarching
batch txn to stop.
Also add a new guard class so a db txn can be stopped in the
face of exceptions.
Also use a read only db txn in init when the db itself is
read only, and do not save the max tx size in that case.
2019-04-14 08:35:38 +00:00
moneromooo-monero
5858598604
p2p: fix integer overflow in host bans
2019-04-11 21:59:27 +00:00
moneromooo-monero
93bb2f48f7
ringct: prevent use of full ringct signatures for more than one input
2019-04-11 19:44:06 +00:00
Riccardo Spagni
716f5a2a6a
Merge pull request #5384
...
0eee6cd7
block_weight: catch exceptions in main for clean exit on error (moneromooo-monero)
4b3bb829
epee: init a new ssl related variable in ctor (moneromooo-monero)
2019-04-11 13:15:20 +02:00
moneromooo-monero
0eee6cd7fe
block_weight: catch exceptions in main for clean exit on error
2019-04-11 11:10:18 +00:00
moneromooo-monero
8646bd0086
functional_tests: exit with 1 if any test fails
2019-04-11 11:08:27 +00:00
moneromooo-monero
04a20cb242
functional_tests: cold signing key images/outputs import/export
2019-04-11 11:08:20 +00:00
moneromooo-monero
798e3cad2b
functional_tests: add double spend detection tests
2019-04-11 11:08:17 +00:00
moneromooo-monero
7c657bb2dd
functional_tests: add alt chains tests
2019-04-11 11:08:15 +00:00
moneromooo-monero
f8be31d269
functional_tests: add wallet creation language tests
2019-04-11 11:08:12 +00:00
moneromooo-monero
2d68b31f3e
functional_tests: add more wallet tests
...
get_transfer_by_txid, get_height, open/close
2019-04-11 11:08:09 +00:00
moneromooo-monero
b3a32d5505
functional_tests: add describe_transfer tests
2019-04-11 11:08:04 +00:00
moneromooo-monero
064ab12340
functional_tests: add more blockchain related tests
...
Related to emission, reorgs, getting tx data back, output
distribution and histogram
2019-04-11 11:07:58 +00:00
moneromooo-monero
21b1ac1dd2
functional_tests: add bans tests
2019-04-11 11:07:55 +00:00
Dusan Klinec
41901b8deb
device/trezor: env-configurable ports
2019-04-10 18:29:24 +02:00
Dusan Klinec
c97a1f79d6
tests: trezor tests fixes and improvements
...
- configurable hardforks via env vars
2019-04-10 17:00:12 +02:00
Dusan Klinec
f29fecd517
build: debug and test builds via contrib
2019-04-10 15:43:52 +02:00
stoffu
e9fac29a4b
unit_tests/long_term_block_weight: some tweaks that seem to make more sense
2019-04-09 20:21:45 +09:00
stoffu
467f4c7ed3
tests/block_weight: use integer division when computing median
2019-04-09 19:40:57 +09:00
stoffu
815d08dc5f
tests/block_weight: remove unused MULTIPLIER_SMALL
2019-04-09 19:40:52 +09:00
Dusan Klinec
ac874e2d40
tests: fix test_options initialization error
2019-04-07 18:18:54 +02:00