Crypto City
11c5ca898b
We can now remove materials already on the blockchain
2020-02-22 14:17:21 +00:00
Crypto City
aad82022a3
cc: give new towns only the town square
2020-01-28 21:08:20 +00:00
Crypto City
4183745da4
add price limit for accrual trades
2020-01-28 15:05:21 +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
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
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
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
Crypto City
2e136c18c4
replace more arrays of NUM_ITEMS by a std::map
2019-12-28 16:33:17 +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
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
269328d4f1
core_tests: set CC_FAST_POW by default
2019-12-17 13:56:16 +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
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
Crypto City
80d2269217
player names are now unique and format restricted
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
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
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
70b4a8f594
Fixes after rebasing onto latest monero
2019-12-13 01:27:46 +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
346f3e9791
game update
2019-12-13 01:21:04 +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
8a9b3f0e66
more work on game update
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
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
bcd323c987
restore tests
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
98533616d3
add a repair field to flag
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
8407d97c84
fix cc core tests after tighter checks and cost increases
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
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
7b6648b77c
buy_land core tests
2019-12-13 01:09:15 +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
aaf0f5098a
remove now obsolete view public key, abortive subaddress support, etc
2019-12-13 01:07:45 +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
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
Dusan Klinec
da6c807f8b
tests: fix HF12 chaingen - construct bc object from events
2019-11-13 10:11:29 +01: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
5d7ae2d279
Adding support for hidden (anonymity) txpool
2019-11-02 20:36:03 +00: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
luigi1111
bf525793c7
Merge pull request #5915
...
8330e77
monerod can now sync from pruned blocks (moneromooo-monero)
2019-10-08 15:55:03 -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
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
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
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
Jesus Ramirez
2cd4fd8972
Changed the use of boost:value_initialized for C++ list initializer
2019-09-02 14:16:29 +02:00
moneromooo-monero
26072f1393
blockchain: forbid v1 coinbase from v12
2019-08-19 16:43:52 +00:00
moneromooo-monero
25a7cfdb4a
add a few checks where it seems appropriate
2019-04-29 20:52:40 +00:00
Doyle
299052bca3
Remove unneeded SFINAE on check_tx/block verification in core_tests
2019-04-17 10:43:14 +10: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
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
Dusan Klinec
c97a1f79d6
tests: trezor tests fixes and improvements
...
- configurable hardforks via env vars
2019-04-10 17:00:12 +02:00
Dusan Klinec
ac874e2d40
tests: fix test_options initialization error
2019-04-07 18:18:54 +02:00
Riccardo Spagni
48e3a341f8
Merge pull request #5211
...
c9b13fbb
tests/trezor: HF9 and HF10 tests (Dusan Klinec)
a1fd1d49
device/trezor: HF10 support added, wallet::API (Dusan Klinec)
d74d26f2
crypto: hmac_keccak added (Dusan Klinec)
2019-03-21 14:44:04 +02:00
Dusan Klinec
c9b13fbbc2
tests/trezor: HF9 and HF10 tests
...
- tests fixes for HF10, builder change, rct_config; fix_chain
- get_tx_key test
- proper testing after live refresh added
- live refresh synthetic test
- log available funds for easier test construction
- wallet::API tests with mocked daemon
2019-03-20 21:11:02 +01:00
Riccardo Spagni
4c91eb23a0
Merge pull request #5061
...
1f2930ce
Update 2019 copyright (binaryFate)
2019-03-17 17:49:30 +02:00
Riccardo Spagni
c88e992104
Merge pull request #4977
...
5ea17909
device/trezor: debugging features, trezor tests (Dusan Klinec)
2019-03-14 09:43:02 +02:00
binaryFate
1f2930ce0b
Update 2019 copyright
2019-03-05 22:05:34 +01:00
Dusan Klinec
5ea17909ca
device/trezor: debugging features, trezor tests
2019-03-05 14:02:45 +01:00