FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BitCore/src/dsnotificationinterface.cpp at master · LIMXTEC/BitCore · GitHub
LIMXTEC
BitCore
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BitCore
/
src
/
dsnotificationinterface.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (52 loc) · 2.05 KB
Breadcrumbs
BitCore
/
src
/
dsnotificationinterface.cpp
Copy path
File metadata and controls
62 lines (52 loc) · 2.05 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
Copyright (c) 2014-2017 The Dash Core developers
//
Copyright (c) 2019 Limxtec developers
//
Distributed under the MIT software license, see the accompanying
//
file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
include
<
chainparams.h
>
#
include
<
dsnotificationinterface.h
>
#
include
<
instantx.h
>
#
include
<
governance.h
>
#
include
<
masternodeman.h
>
#
include
<
masternode-payments.h
>
#
include
<
masternode-sync.h
>
#
include
<
privatesend.h
>
#
ifdef
ENABLE_WALLET
#
include
<
privatesend-client.h
>
#
endif
//
ENABLE_WALLET
void
CDSNotificationInterface::InitializeCurrentBlockTip
()
{
LOCK
(cs_main);
UpdatedBlockTip
(chainActive.
Tip
(),
NULL
,
IsInitialBlockDownload
());
}
void
CDSNotificationInterface::AcceptedBlockHeader
(
const
CBlockIndex *pindexNew)
{
masternodeSync.
AcceptedBlockHeader
(pindexNew);
}
void
CDSNotificationInterface::NotifyHeaderTip
(
const
CBlockIndex *pindexNew,
bool
fInitialDownload
)
{
masternodeSync.
NotifyHeaderTip
(pindexNew,
fInitialDownload
, connman);
}
void
CDSNotificationInterface::UpdatedBlockTip
(
const
CBlockIndex *pindexNew,
const
CBlockIndex *pindexFork,
bool
fInitialDownload
)
{
if
(pindexNew == pindexFork)
//
blocks were disconnected without any new ones
return
;
masternodeSync.
UpdatedBlockTip
(pindexNew,
fInitialDownload
, connman);
//
FXTC TODO:
//
Update global DIP0001 activation status
//
fDIP0001ActiveAtTip = (VersionBitsState(pindexNew, Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0001, versionbitscache) == ThresholdState::ACTIVE);
if
(
fInitialDownload
)
return
;
mnodeman.
UpdatedBlockTip
(pindexNew);
CPrivateSend::UpdatedBlockTip
(pindexNew);
#
ifdef
ENABLE_WALLET
privateSendClient.
UpdatedBlockTip
(pindexNew);
#
endif
//
ENABLE_WALLET
instantsend.
UpdatedBlockTip
(pindexNew);
mnpayments.
UpdatedBlockTip
(pindexNew, connman);
governance.
UpdatedBlockTip
(pindexNew, connman);
}
void
CDSNotificationInterface::SyncTransaction
(
const
CTransaction &tx,
const
CBlock *pblock)
{
instantsend.
SyncTransaction
(tx, pblock);
CPrivateSend::SyncTransaction
(tx, pblock);
}
Back
|
FazBrowse Home
|
New Git URL