Steven Barclay
508ab1f8e2
Make receiver address deterministic if >1 comp. requests in cycle
...
Handle the exceptional case of a receiver address chosen from a cycle
where the candidate somehow got more than one compensation proposal
accepted. Either the last custom address or first issuance change
address is supposed to be chosen for the receiver address, but in case
of a tie at that vote result height, take the address that comes
first in lexicographic order.
2024-07-13 19:03:37 +02:00
Steven Barclay
aa7aedd0b1
Make getActiveBurningManCandidates return a list instead of a set
...
This avoids needless hashing & equality comparisons of instances of
'BurningManCandidate', which are quite large mutable objects (so should
probably use reference equality anyway, and not be used as keys).
Also rearrange a couple of (package) private methods.
2024-07-13 16:55:07 +02:00
Steven Barclay
267becf612
Fix minor quadratic time bug in getBurningManCandidatesByName
...
Avoid streaming over the entire proposals list to find a matching txId,
for every 'Issuance' & 'CompensationProposal' pair used to construct and
add a compensation model to the burn output model of each candidate.
Instead, stream over the proposals list once, doing lookups by txId of
each matching issuance, which uses the TreeMap 'DaoState.issuanceMap',
thereby taking O(n*log(n)) time.
2024-07-13 16:29:48 +02:00
HenrikJannsen
53609ec9c3
Remove mrosseel btc node
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-05 16:01:47 +07:00
HenrikJannsen
d39dd2ae25
Set useFullModeDaoMonitor to true in all headless apps
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-07-01 10:32:26 +07:00
HenrikJannsen
262840b6b8
Fix missing params in tests
2024-06-30 19:11:18 +07:00
HenrikJannsen
7b85bc5876
Fix bug with using wrong collection which held only one bond per hash
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-30 18:28:32 +07:00
HenrikJannsen
2478da1d26
Log time for hash created every 10 blocks
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 14:30:01 +07:00
HenrikJannsen
fd17a29361
Add useFullModeDaoMonitor to options
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 14:22:00 +07:00
HenrikJannsen
5a8c3bc5bf
Call maybeCreateSnapshot if is full DAO node
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 13:59:48 +07:00
HenrikJannsen
63f364424c
Refactor: Refactor statement and return early
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 13:32:39 +07:00
HenrikJannsen
143d1e9cc6
Refactor: Extract statement to var and return early
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 13:28:07 +07:00
HenrikJannsen
318803e4d9
Refactor: Invert readyForPersisting and rename it
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 13:25:21 +07:00
HenrikJannsen
7c521b018c
Refactor: Early return if not isSnapshotHeight and if blocks are empty. Inline statement
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 13:11:00 +07:00
HenrikJannsen
634d1fc944
Refactor: Invert isHeightAtLeastGenesisHeight method and rename it
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 13:03:15 +07:00
HenrikJannsen
1d6b6de42e
Refactor: Early return if !isHeightAtLeastGenesisHeight. Add log in isHeightAtLeastGenesisHeight
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-29 13:01:19 +07:00
Alejandro García
dc0e8d8616
Merge pull request #7183 from HenrikJannsen/5_refactor-ExecutableforAppWithP2P
...
Refactor ExecutableForAppWithP2p [E]
2024-06-28 21:55:30 +00:00
Alejandro García
e256337b1c
Merge pull request #7182 from HenrikJannsen/4_improve-seednode
...
Improve seednode [D]
2024-06-28 21:55:15 +00:00
Alejandro García
6963caba80
Merge pull request #7181 from HenrikJannsen/3_improve-resync-handling
...
Improve resync handling [C]
2024-06-28 21:54:54 +00:00
Alejandro García
9920595399
Merge pull request #7180 from HenrikJannsen/2_further-refactorings-and-improvements
...
Further refactorings and improvements [B]
2024-06-28 21:54:35 +00:00
Alejandro García
0660d1f0b3
Merge pull request #7179 from HenrikJannsen/1_renameing-and-cleanups
...
Various refactoring (renameing) and cleanups [A]
2024-06-28 21:54:05 +00:00
Alejandro García
24d6c7174c
Merge pull request #7178 from HenrikJannsen/remove-unused-test-resources
...
Remove unused test resources
2024-06-28 21:53:27 +00:00
Alejandro García
d35b609571
Merge pull request #7176 from HenrikJannsen/update-btc-nodes
...
Update btc nodes [3]
2024-06-28 21:50:08 +00:00
HenrikJannsen
59f2df9f2f
Move duplicated code to super class
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 21:41:41 +07:00
HenrikJannsen
ed5547ac97
Move AppSetupWithP2PAndDAO.start call to ExecutableForAppWithP2p
...
Refactor StatisticsMain
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 21:21:17 +07:00
HenrikJannsen
94a9c8ac01
Instead of delaying the shutdown in case of a resync we delay the startup. This has the benefit that nodes cannot connect to the seed node while having inconsistant dao data.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 20:54:45 +07:00
HenrikJannsen
aa9d3a3123
Moe seed node specific code from ExecutableForAppWithP2p to SeedNodeMain.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 20:39:29 +07:00
HenrikJannsen
a79de681f6
Improve comments
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 20:12:28 +07:00
HenrikJannsen
1f131b346e
Add heightsOfLastAppliedSnapshots list and resync in case we tried to apply 3 times with same height
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:45:45 +07:00
HenrikJannsen
04ea4ae053
Refactor applySnapshot method: early return, extract method
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:42:00 +07:00
HenrikJannsen
343ef5e6cc
Refactor applySnapshot method: early return
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:35:59 +07:00
HenrikJannsen
cc27f9dd70
Refactor applySnapshot method: early return
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:34:46 +07:00
HenrikJannsen
8f4deb09ba
Refactor applySnapshot method
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:31:22 +07:00
HenrikJannsen
90ca73a82b
Improve resyncDaoStateFromResources method
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:23:02 +07:00
HenrikJannsen
3a2061a538
Call removeAndBackupAllDaoData at daoStateStorageService if checkpoint is invalid.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:17:51 +07:00
HenrikJannsen
02366eb6da
Refactor removeAndBackupDaoConsensusFiles method
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:14:56 +07:00
HenrikJannsen
8be5f8a962
Remove also TempProposalStore and BurningManAccountingStore_v3 at resync from resources
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:04:39 +07:00
HenrikJannsen
b43257ea9b
Refactor: Remove unneeded param
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 19:04:24 +07:00
HenrikJannsen
e98c4a3fba
Fix wrong param in test
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:29:00 +07:00
HenrikJannsen
09626a1e85
Move launchApplication to super class
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:23:32 +07:00
HenrikJannsen
4d99e31281
Move getModule() method to ExecutableForAppWithP2p
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:21:56 +07:00
HenrikJannsen
b30924b3fb
Remove storageDir param from removeAndBackupAllDaoData method
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:21:56 +07:00
HenrikJannsen
a96e614595
Remove transient fields from toString
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:21:56 +07:00
HenrikJannsen
d12b6608c7
Improve logs. Minor cleanups
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 18:19:47 +07:00
HenrikJannsen
b3580c05f7
Refactoring: renaming
2024-06-28 18:19:46 +07:00
HenrikJannsen
f0a2602868
Hide value of banned accounts
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 14:11:41 +07:00
HenrikJannsen
0e306d6556
Printe hex of ownerPubKe
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 14:11:20 +07:00
HenrikJannsen
c4c51b6d3a
Remove unstable nodes, add old node from devin
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 13:07:06 +07:00
HenrikJannsen
0457bd41a5
Remove unused test resources
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 12:41:13 +07:00
HenrikJannsen
56679e3c08
Add new btc nodes, remove unstable nodes
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 12:24:41 +07:00
HenrikJannsen
79d43fea51
Improve logs
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-28 12:23:37 +07:00
Alejandro García
a090f2aa27
Merge branch 'master' into release/v1.9.17
2024-06-25 20:33:51 +00:00
HenrikJannsen
1d51551133
Update btc nodes
...
Add previously used nodes which are intended to get retired but got
added again due shortage of stable nodes. Those marked unstable should
be banned by filter as long they stay unstable.
2024-06-12 13:48:07 +00:00
HenrikJannsen
4f5e90b2c8
Comment out node_op_324 node as not working yet
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 09:50:09 +07:00
HenrikJannsen
fa541e4643
Add previously used nodes which are intended to get retired but got added again due shortage of stable nodes.
...
Add new nodes.
Those marked unstable should be banned by filter as long they stay unstable.
2024-06-12 09:46:16 +07:00
HenrikJannsen
b0b54d3617
Add uid to Filter
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:06:43 +00:00
HenrikJannsen
5d8ca125bc
Apply ExcludeForHash annotation to Filter.
...
By that the newly added fields will not alter the byte array used for the hash and the signature, thus it will not cause issues with removing an old filter which did not inculde those new fields.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:06:43 +00:00
HenrikJannsen
19a9526d55
Refactor: Replace toProtoMessage().toByteArray() calls to serialize() or serializeForHash() methods.
...
Currenty serializeForHash just calls serialize. This will be change in later commits
2024-06-12 00:05:53 +00:00
HenrikJannsen
450814b926
Fix tests
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:05:06 +00:00
HenrikJannsen
c6b30b00cc
Add filterProvidedBtcNodes and filterProvidedSeedNodes fields to Config.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:05:06 +00:00
HenrikJannsen
f38b64b9ed
Add addedBtcNodes and addedSeedNodes fields to Filter.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:05:06 +00:00
HenrikJannsen
67bc6818e6
Remove inactive btc2.vante.me btc node
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-12 00:03:36 +00:00
HenrikJannsen
5fd95bb6dc
Add luis3672 to DisputeAgentLookupMap
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-11 23:56:58 +00:00
RunBTC
cd52dfef7c
Add nodes
2024-06-11 23:55:36 +00:00
HenrikJannsen
524a3d7c98
Add previously used btc nodes and new nodes
2024-06-11 23:45:44 +07:00
HenrikJannsen
6f4d69d6f4
Add getId method
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-10 19:59:17 +07:00
HenrikJannsen
d51d03e0fa
Add convenience method
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-10 19:46:30 +07:00
HenrikJannsen
73a1281771
Add uid to Filter
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-08 17:07:08 +07:00
HenrikJannsen
c70cc4a5d6
Apply ExcludeForHash annotation to Filter.
...
By that the newly added fields will not alter the byte array used for the hash and the signature, thus it will not cause issues with removing an old filter which did not inculde those new fields.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-08 15:02:05 +07:00
HenrikJannsen
5661409bbc
Refactor: Replace toProtoMessage().toByteArray() calls to serialize() or serializeForHash() methods.
...
Currenty serializeForHash just calls serialize. This will be change in later commits
2024-06-08 13:15:42 +07:00
Alejandro García
ed649e64b4
Merge pull request #7149 from HenrikJannsen/add-new-fields-to-filter
...
Add new fields to filter
2024-06-07 22:59:28 +00:00
Alejandro García
de67faacef
Merge pull request #7148 from HenrikJannsen/remove-inactive-btc-node
...
Remove inactive btc2.vante.me btc node
2024-06-07 22:57:06 +00:00
HenrikJannsen
15a68ec70c
Fix tests
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 22:57:51 +07:00
HenrikJannsen
9b85dc928d
Improve logs
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 22:53:36 +07:00
HenrikJannsen
ddf073a6ff
Add filterProvidedBtcNodes and filterProvidedSeedNodes fields to Config.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 18:14:51 +07:00
HenrikJannsen
01355fdc54
Add addedBtcNodes and addedSeedNodes fields to Filter.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 18:11:23 +07:00
HenrikJannsen
192b4a0338
Remove inactive btc2.vante.me btc node
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-07 16:17:17 +07:00
Alejandro García
5d8e36215f
Merge pull request #7143 from HenrikJannsen/add-luis3672-mediator
...
Add luis3672 to DisputeAgentLookupMap
2024-06-06 20:37:35 +00:00
HenrikJannsen
1e8362950c
Add luis3672 to DisputeAgentLookupMap
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-06-06 07:44:20 +07:00
RunBTC
8f8762969c
Merge branch 'master' into add-nodes
2024-06-03 04:37:18 +00:00
runbtc
99b2adf7bb
Remove trailing commas
2024-06-02 21:32:04 -07:00
Devin Bileck
55dbf4893c
Remove emzy monero explorer
2024-06-01 03:42:51 +02:00
Devin Bileck
e94b17645e
Remove emzy btc nodes
2024-06-01 03:42:51 +02:00
Devin Bileck
e5e6276f38
Remove emzy price node
2024-06-01 03:42:51 +02:00
Devin Bileck
e4a8e2b1d0
Remove emzy seed nodes
2024-06-01 03:42:51 +02:00
RunBTC
63f414df80
Merge branch 'master' into add-nodes
2024-05-31 07:51:24 +00:00
runbtc
5cd6f84fdb
Add nodes
2024-05-31 00:16:12 -07:00
Devin Bileck
fae29ee092
Remove emzy monero explorer
2024-05-30 13:17:00 -07:00
Devin Bileck
2938c4603f
Remove emzy btc nodes
2024-05-30 13:11:59 -07:00
Devin Bileck
a4cf4387a6
Remove emzy price node
2024-05-30 13:10:35 -07:00
Devin Bileck
7a99d8f4a0
Remove emzy seed nodes
2024-05-29 22:51:37 -07:00
HenrikJannsen
053884cad5
Fix tests
...
Don't use 20 BTC amount as we limit to 2 BTC
Remove 30 BTC amounts
2024-05-29 18:06:04 +02:00
HenrikJannsen
b0357cdedc
Improve code for adding exceedingOffers to invalidOffers
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:05:56 +02:00
HenrikJannsen
0dcd24105f
Refactor: Rename
...
Fix type
Add comment
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:05:48 +02:00
HenrikJannsen
31cd7efa04
Remove exceptional handling of SiaFund (SF)
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:05:39 +02:00
HenrikJannsen
d94e5cf03e
Adjust trade limits of paymnet methods using custom trade limits by the factor of which the DAO param has changed.
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:05:29 +02:00
HenrikJannsen
f4d525cfd6
Add predicate to offer filter to check if offer amount exceeds trade limit.
...
Filter offers at OfferBookViewModel when the DaoState changes.
Check for offers amount exceeds trade limit at OpenOfferManager and add it to invalidOffers.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-29 18:05:14 +02:00
Alejandro García
2185bcba49
Merge pull request #7120 from HenrikJannsen/remove-survey-link-at-trade-feedback
...
Remove survey link and related text at trade complete feedback
2024-05-29 15:46:08 +00:00
HenrikJannsen
8c07c11668
Fix tests
...
Don't use 20 BTC amount as we limit to 2 BTC
Remove 30 BTC amounts
2024-05-26 18:30:08 +07:00
HenrikJannsen
3b7f72e3ef
Remove survey link and related text at trade complete feedback
...
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2024-05-26 18:24:22 +07:00