Crypto City
75516e6e34
core: fix mining from a block that's not the current top
2020-06-21 01:18:29 +00: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
c22e54b850
unlock_time is now valid only for coinbase txes
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
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
6a18101b1a
add invitation system
2020-05-26 16:22:42 +00:00
selsta
f35ced6d7f
build: fix boost 1.73 compatibility
2020-05-14 22:57:53 +02:00
SomaticFanatic
5ef0607da6
Update copyright year to 2020
...
Update copyright year to 2020
2020-05-06 22:36:54 -04:00
Crypto City
326f4bc3f2
allow repairing many flags in one command
2020-04-15 17:51:31 +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
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
Crypto City
39163c168a
Event badges can now be awarded after creation
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
ff8a60b61c
Merge pull request #6061
...
f1091c41
core_tests: remove some useless verbose logs (moneromooo-monero)
2020-02-28 19:57:13 -08:00
Crypto City
e8e5e63996
repairing now uses materials too
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
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