Commit graph

5914 commits

Author SHA1 Message Date
Manfred Karrer
81c57cf2d5
Remove chainHeightListeners from PeriodService
- Rename addPeriodStateChangeListener to addChainHeightListener
2018-04-24 09:28:19 -05:00
Manfred Karrer
bf8629d23e
Refactor handling of cycles
- Remove PeriodState
- Add cycles to state
- Use stateService for getting chainHeight instead of periodService
- Let parser call stateService methods on start parsing and on new block
- Rename PeriodStateChangeListener to ChainHeightListener
- Rename PeriodStateUpdater to CycleService
- Use StartParsingListener to decouple CycleService with StateService
- Remove StateChangeEventsProvider interface from CycleService
- Let CycleService write to StateService not PeriodService
2018-04-23 22:59:34 -05:00
Manfred Karrer
15ff5fadab
Move voting related classes to voting package 2018-04-23 19:20:00 -05:00
Manfred Karrer
6ed700589d
Move ValidationException to bisq.core.dao.exceptions 2018-04-23 00:16:34 -05:00
Manfred Karrer
3d99e92267
Add DaoFacade to provide a reduced API for clients (UI) 2018-04-22 21:22:37 -05:00
Manfred Karrer
dc2db746b7
Move classes out of consensus package 2018-04-22 19:32:16 -05:00
Manfred Karrer
aa6a9226a2
Improve proposal and ballot domain
- Add ProposalService for publishing proposal
- Use ballotListService for maintaining ballotList
- Add BallotUtil
2018-04-22 19:16:00 -05:00
Manfred Karrer
8a3e8c7a96
Cleanup 2018-04-22 00:09:47 -05:00
Manfred Karrer
930573a6dd
Merge branch 'rpc_thread' into voting 2018-04-21 22:21:04 -05:00
Manfred Karrer
53b5b7b831
Remove presentation package and classes 2018-04-21 21:41:28 -05:00
Manfred Karrer
faa15f3da6
Move ballot classed from bisq.core.dao.presentation to consensus 2018-04-21 21:04:17 -05:00
Manfred Karrer
6551ad28df
Remove StateServiceFacade 2018-04-21 21:03:47 -05:00
Manfred Karrer
7e207d380d
Remove usage of PeriodServiceFacade and ThreadAwareListener 2018-04-21 20:52:33 -05:00
Manfred Karrer
c9a4d54615
Rename package bisq.core.dao.presentation.proposal to ballot 2018-04-21 14:40:42 -05:00
Manfred Karrer
30b4e56b61
Separate blindVoteService 2018-04-20 22:33:37 -05:00
Manfred Karrer
4fd29557f5
Apply separation of thread access to myVote domain 2018-04-20 22:04:23 -05:00
Manfred Karrer
46a440d84b
Change ballot list services to user thread services 2018-04-20 20:29:31 -05:00
Manfred Karrer
ca1ab3d3f0
Remove proposalService from views 2018-04-20 14:17:00 -05:00
Manfred Karrer
0389fb03e0
Move ballot classed to own package 2018-04-20 14:10:51 -05:00
Manfred Karrer
9becb6d25f
Move packages level up 2018-04-20 14:07:49 -05:00
Manfred Karrer
75f84a0fa5
Refactoring
- Add PeriodStateMutator to guice module
- Add ConsensusServicesSetup and PresentationServicesSetup
- Separate code from onAllServicesInitialized into listener registration and start method
- Move MyProposalService and ProposalListService to bisq.core.dao.presentation.proposal (WIP)
- Add PresentationService marker interface
- Rename PHASE_ISSUANCE to PHASE_VOTE_RESULT
- Remove onInitialState from PeriodStateChangeListener
- Add getCloneOnUserThread method to PeriodState
- Change addListenerAndGetNotified to addPeriodStateChangeListener
- Call start on PeriodStateMutator from ConsensusServicesSetup instead of own constructor
- Use explicit interface StateChangeEventsProvider for registerStateChangeEventsProvider
- Set setChainHeight at onStartParsingNewBlock at the end to avoid that listeners get called before the cycle is added
- Use PeriodServiceFacade instead of PeriodService in ProposalListService
- Use StateServiceFacade instead of StateService in ProposalListService
- Add market interface StateChangeEventsProvider
2018-04-20 14:02:45 -05:00
Manfred Karrer
8fcab9b1e7
Rename ISSUANCE to VOTE_RESULT and openBallotList to ballotList 2018-04-20 11:34:21 -05:00
Manfred Karrer
2e95971502
Add BlockListener
- Reintroduce BlockListener and use it instead of PeriodStateChangeListener in most use cases as we are usually interested in the event when a block is complete not when the periods service chain height change gets triggered before parsing starts.
2018-04-20 11:28:58 -05:00
Manfred Karrer
5bdef18fcb
Move bisq.core.dao.consensus.vote.myvote package to bisq.core.dao 2018-04-20 10:39:37 -05:00
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