Commit graph

6490 commits

Author SHA1 Message Date
Manfred Karrer
01f4731700
Remove BlockListener from StateService
- Use PeriodStateChangeListener instead of BlockListener for getting notified about block height changes.
2018-04-20 00:03:54 -05:00
Manfred Karrer
4460882adc
Move code for writing to periodState to mutator class.
- Use local periodState object in PeriodStateFacade
2018-04-19 22:57:39 -05:00
Manfred Karrer
41b6155273
Add option key daoActivated to enable all dao features for dev 2018-04-19 20:51:03 -05:00
Manfred Karrer
006e682249
Merge branch 'master' into voting
# Conflicts:
#	src/main/java/bisq/desktop/main/account/content/fiataccounts/FiatAccountsView.java
2018-04-19 20:17:42 -05:00
Manfred Karrer
ab0ac64628
Merge branch 'master' into voting
# Conflicts:
#	src/main/java/bisq/desktop/main/account/content/fiataccounts/FiatAccountsView.java
2018-04-19 20:17:36 -05:00
Manfred Karrer
20b2957eb9
Split Proposal into Proposal and ProposalPayload 2018-04-19 20:11:25 -05:00
Manfred Karrer
8cf2b6c730
Deactivate removeAsset, generic adn changeParam domains.
- To not have too much extra work while refactoring we deactivate those incomplete domains. Once refactoring is complete we apply the changes there.
2018-04-19 19:11:21 -05:00
Manfred Karrer
68d854a114
Rename classed with term CompensationRequest to Compensation 2018-04-19 19:01:45 -05:00
Manfred Karrer
3e6f125250
Move classes to other packages 2018-04-19 18:15:32 -05:00
Manfred Karrer
27ac78f98b
Rename Proposal to Ballot and ProposalPayload to Proposal 2018-04-18 22:26:55 -05:00
Manfred Karrer
945663b33d
Move Payload classes to bisq.core.dao.consensus.state.events.payloads 2018-04-18 20:59:50 -05:00
Manfred Karrer
9e4a30ec97
Moving packages and rename classes
- Use consensus package for all consensus relevant code
- Move UserThreadStateService from bisq.core.dao.state to bisq.core.dao.presentation.state
- Rename UserThreadStateService to StateServiceFacade
2018-04-18 20:49:39 -05:00
Chris Beams
4e57a9ee55
Merge pull request #1515 from ManfredKarrer/app-startup
This will be a series of small scale and low risk changes for improving startup
2018-04-18 13:31:46 +02:00
Manfred Karrer
57fe6be2cc
Map onApplicationLaunched on user thread 2018-04-17 22:25:23 -05:00
Manfred Karrer
91f928c7a3
Cleanups
- remove duplicate CommonSetup.setup(this);
- Move VERSION to main classes
- Remove Capabilities from monitor
2018-04-17 21:19:21 -05:00
Manfred Karrer
f00fe6d38d
Apply refactorings to headless apps
- Add HeadlessAppWithP2PModule for headless apps which do not use wallet
- Add gracefulShutDown to HeadlessExecutable
- Update Monitor, SeedNode and Statistics to latest refactorings
- Remove BisqEnvironment from BisqApp
- Add startApplication method to BisqApp
- Set up bisqEnvironment in BisqExecutable
- Add addCapabilities method
- Add more comments
2018-04-17 21:04:22 -05:00
Manfred Karrer
f7ba31360e
Move guice setup to BisqAppMain
- Add to onApplicationLaunched, setupGuice, setupPersistedDataHosts and gracefulShutDown methods to BisqExecutable
- Move CommonSetup.setup to BisqAppMain
- Add UncaughtExceptionHandler and GracefulShutDownHandler interfaces
- Replace BiConsumer in CommonSetup.setup with UncaughtExceptionHandler
- Use getter for BisqApp.shutDownHandler
2018-04-17 18:04:11 -05:00
Manfred Karrer
f036cc911c
Make primary stage non-static. Rename to stage. 2018-04-17 16:02:05 -05:00
Manfred Karrer
51a77a533a
Remove Stage from Guice module. Replace usage with getting it from view. 2018-04-17 15:57:05 -05:00
Manfred Karrer
c48e35ed41
Refactor BisqExecutable
- Let doExecute in BisqExecutable implement basic setup
- Setup UserThread in configUserThread
- Add setupEnvironment, configCoreSetup and launchApplication to BisqExecutable
- Add static setupInitialOptionParser method
- Move static initializer to BisqExecutable
- Add ShutDownHandler
- Add HeadlessExecutable for seedNode, monitor and statistics. Extract common code there.
2018-04-17 15:26:53 -05:00
Manfred Karrer
6af80b334e
Add CoreModule. Let BisqAppModule install CoreModule 2018-04-17 13:56:07 -05:00
Manfred Karrer
cfd953d236
Remove CachingViewLoader and NotificationCenter from BisqAppModule 2018-04-17 13:51:53 -05:00
Manfred Karrer
601155abba
Move CachingViewLoader and NotificationCenter from BisqAppModule to DesktopModule
- Rename guiModule() to desktopModule()
2018-04-17 13:50:26 -05:00
Manfred Karrer
439ccac11e
Merge branch 'ripcurlx-edit-offer' 2018-04-17 12:29:25 -05:00
Manfred Karrer
e2bf052621
Merge branch 'ripcurlx-edit-offer' 2018-04-17 12:29:10 -05:00
Manfred Karrer
3b91f08ce4
Fix issue with deactivated offers getting published after editing
- Add check if editedOpenOffer is not deactivated to avoid republishing
- Use errorMessageHandler instead of IllegalStateException. We can discuss if you would prefer that style but so far we did not throw exceptions to the UI but rather use error handlers.
- Small cleanups
2018-04-17 12:25:51 -05:00
Manfred Karrer
75e616f9de
Merge branch 'edit-offer' of https://github.com/ripcurlx/bisq-desktop into ripcurlx-edit-offer 2018-04-17 11:40:31 -05:00
Christoph Atteneder
d1b7701512
Remove padding on top of amount group 2018-04-17 17:36:38 +02:00
Manfred Karrer
c1862aceeb
Move package bisq.core.dao.vote.period to bisq.core.dao.period 2018-04-17 10:27:55 -05:00
Christoph Atteneder
8c2cb14b12
Prevent deletion of offer when edited 2018-04-17 17:27:38 +02:00
Christoph Atteneder
94fc874383
Add price in range check 2018-04-17 17:21:04 +02:00
Christoph Atteneder
2e174fba18
Handle cancel offer in data model 2018-04-17 17:16:57 +02:00
Christoph Atteneder
1999bc9a99
Adapt scopes to be able to run existing tests again 2018-04-17 15:00:24 +02:00
Christoph Atteneder
238eb08698
Add edit offer support for deactivated offers 2018-04-17 13:55:17 +02:00
Christoph Atteneder
66d6d671c4
Clean up naming and structure of code to match existing style 2018-04-17 12:03:26 +02:00
Christoph Atteneder
11384ab807
Update imports for de.jensd.fx and optimize imports 2018-04-17 11:17:35 +02:00
Christoph Atteneder
c98b185e3d
Re-style deactivate/activate offer column and add edit offer column 2018-04-17 11:09:03 +02:00
Christoph Atteneder
6e50e53e13
Split up edit open offer process in two steps 2018-04-17 11:04:52 +02:00
Manfred Karrer
eae31eff38
Refactor state
- Break up state and stateService
- Add UserThreadStateService for access from user thread
- Map state changes to UserThreadStateService
- Add execute method to ThreadAwareListener
2018-04-16 22:38:26 -05:00
Christoph Atteneder
96beeb2dbb
Reset fields to force re-validation 2018-04-16 15:36:38 +02:00
Christoph Atteneder
50a45da0b7
Add basic edit offer functionality 2018-04-16 14:40:31 +02:00
Christoph Atteneder
0adae19423
Initialize edit form with data 2018-04-16 10:41:40 +02:00
Christoph Atteneder
2eb2ecba50
Extracted Create Offer code into Editable Offer abstract class 2018-04-16 10:00:44 +02:00
Manfred Karrer
11f5135735
Refactor periodService
- Move mutual state to PeriodState
- Move stateless methods to BasePeriodService
- Use provider methods for accessing the state
- Use PeriodService for parser thread
- Use UserThreadPeriodService for userThread
- Use PhaseWrapper for holding enum and duration
- Move classes to vote.period package
2018-04-15 20:55:10 -05:00
Manfred Karrer
52c9a18411
Use params for period service
- Set initial durations at genesis height with default values of params
- Update durations when a changeParamEvent triggers a change
- Add Cycle class
- Add threadsafe wrapper
- Update UI period component
2018-04-14 23:25:52 -05:00
Manfred Karrer
1db7c87e2a
Merge branch 'master' into voting 2018-04-14 08:50:13 -05:00
Manfred Karrer
2dad464dcf
Merge branch 'master_origin' into voting 2018-04-14 08:48:23 -05:00
Manfred Karrer
d6337dcaaa
Merge branch 'master_origin' 2018-04-14 08:45:12 -05:00
Manfred Karrer
a0c2341bab
FIx threading and persistence issue
- Remove nodeExecutor.execute in stateService when processing the stateChangeEventsProviders to avoid delayed execution
- Comment out removal of local lists as we have the state not persisted yet
- Fix wrong phase check in BlindVoteService
- Rename getChainHeadHeight to getHeadHeight
2018-04-13 20:54:57 -05:00
Manfred Karrer
c279beec30
Refactor BlindVoteService to be executed on parser thread only 2018-04-13 19:53:33 -05:00