Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Allred
crown-core
Commits
bcde6b3e
Commit
bcde6b3e
authored
8 years ago
by
Infernoman
Browse files
Options
Download
Email Patches
Plain Diff
Fix dirty-merge-0.9
Former-commit-id: 66f0baa03b21f972e974b89cd89890568043f2a7
parent
17c1d65b
master
211-agent-voting
227-sync-fix
89-merge-0.11-1st-stage
89-merge-bitcoin-latest-changes-0.10
Current-dev
DNSSeeds
add-testnet-option-to-script
add_stakepointer_new_block
bitcore
blockundo_with_coinstake
bug-template-updates
disallow_duplicate_sp
fix-dash-copyright-violations
make-instant-send-default
setup-script-edits
stake_modifier
sync-optimization
systemnode_staking
test-other-gitlab-runner-branch-to-be-deleted-if-completes
v0.12.5.1
v0.12.5.0
v0.12.4.1
v0.12.4.0
v0.12.2.0
v0.12.1.0
v0.12.0.61
bitcore-bin-005
bitcore-bin-004
bitcore-bin-003
bitcore-bin-002
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
src/main.cpp
+5
-5
src/main.cpp
src/qt/forms/rpcconsole.ui
+36
-46
src/qt/forms/rpcconsole.ui
src/qt/paymentserver.cpp
+1
-1
src/qt/paymentserver.cpp
src/rpcblockchain.cpp
+1
-1
src/rpcblockchain.cpp
src/rpcserver.cpp
+1
-1
src/rpcserver.cpp
src/wallet.cpp
+2
-16
src/wallet.cpp
with
46 additions
and
70 deletions
+46
-70
src/main.cpp
View file @
bcde6b3e
...
...
@@ -1666,7 +1666,6 @@ void CheckForkWarningConditions()
std::string warning = std::string("'Warning: Large-work fork detected, forking after block ") +
pindexBestForkBase->phashBlock->ToString() + std::string("'");
CAlert::Notify(warning, true);
}
}
if (pindexBestForkTip && pindexBestForkBase)
{
...
...
@@ -2087,14 +2086,15 @@ bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, C
unsigned int flags = SCRIPT_VERIFY_NOCACHE |
(fStrictPayToScriptHash ? SCRIPT_VERIFY_P2SH : SCRIPT_VERIFY_NONE);
if (considerNames)
flags |= SCRIPT_VERIFY_NAMES;
if (block.nVersion >= 3 &&
if (block.nVersion.GetBaseVersion() >= 3 &&
((!TestNet() && CBlockIndex::IsSuperMajority(3, pindex->pprev, 750, 1000)) ||
(TestNet() && CBlockIndex::IsSuperMajority(3, pindex->pprev, 51, 100)))) {
flags |= SCRIPT_VERIFY_DERSIG;
}
if (considerNames)
flags |= SCRIPT_VERIFY_NAMES;
CBlockUndo blockundo(pindex);
...
...
@@ -2927,7 +2927,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp)
}
}
// Reject block.nVersion=2 blocks when 95% (75% on testnet) of the network has upgraded:
if (block.nVersion < 3)
if (block.nVersion
.GetBaseVersion()
< 3)
{
if ((!TestNet() && CBlockIndex::IsSuperMajority(3, pindexPrev, 950, 1000)) ||
(TestNet() && CBlockIndex::IsSuperMajority(3, pindexPrev, 75, 100)))
...
...
This diff is collapsed.
Click to expand it.
src/qt/forms/rpcconsole.ui
View file @
bcde6b3e
...
...
@@ -23,7 +23,7 @@
<attribute
name=
"title"
>
<string>
&
Information
</string>
</attribute>
<layout
class=
"QGridLayout"
name=
"gridLayout"
columnstretch=
"0,
0
"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
columnstretch=
"0,
1
"
>
<property
name=
"horizontalSpacing"
>
<number>
12
</number>
</property>
...
...
@@ -86,13 +86,6 @@
</property>
</widget>
</item>
<item
row=
"4"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_12"
>
<property
name=
"text"
>
<string>
Build date
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_14"
>
<property
name=
"text"
>
...
...
@@ -119,10 +112,10 @@
</property>
</widget>
</item>
<item
row=
"
5
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_1
3
"
>
<item
row=
"
4
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_1
2
"
>
<property
name=
"text"
>
<string>
Startup tim
e
</string>
<string>
Build dat
e
</string>
</property>
</widget>
</item>
...
...
@@ -142,10 +135,10 @@
</property>
</widget>
</item>
<item
row=
"
7
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
8
"
>
<item
row=
"
5
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
13
"
>
<property
name=
"text"
>
<string>
Na
me
</string>
<string>
Startup ti
me
</string>
</property>
</widget>
</item>
...
...
@@ -178,10 +171,10 @@
</property>
</widget>
</item>
<item
row=
"
8
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
7
"
>
<item
row=
"
7
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
8
"
>
<property
name=
"text"
>
<string>
N
umber of connections
</string>
<string>
N
ame
</string>
</property>
</widget>
</item>
...
...
@@ -201,10 +194,10 @@
</property>
</widget>
</item>
<item
row=
"
11
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
3
"
>
<item
row=
"
8
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
7
"
>
<property
name=
"text"
>
<string>
Current number of block
s
</string>
<string>
Number of connection
s
</string>
</property>
</widget>
</item>
...
...
@@ -224,7 +217,7 @@
</property>
</widget>
</item>
<item
row=
"
10
"
column=
"0"
>
<item
row=
"
9
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_10"
>
<property
name=
"font"
>
<font>
...
...
@@ -237,14 +230,14 @@
</property>
</widget>
</item>
<item
row=
"1
2
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
4
"
>
<item
row=
"1
0
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
3
"
>
<property
name=
"text"
>
<string>
Estimated total
blocks
</string>
<string>
Current number of
blocks
</string>
</property>
</widget>
</item>
<item
row=
"1
1
"
column=
"1"
>
<item
row=
"1
0
"
column=
"1"
>
<widget
class=
"QLabel"
name=
"numberOfBlocks"
>
<property
name=
"cursor"
>
<cursorShape>
IBeamCursor
</cursorShape>
...
...
@@ -263,10 +256,7 @@
<item
row=
"11"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
&
Open
</string>
</property>
<property
name=
"autoDefault"
>
<bool>
false
</bool>
<string>
Last block time
</string>
</property>
</widget>
</item>
...
...
@@ -325,7 +315,21 @@
</property>
</widget>
</item>
<item
row=
"15"
column=
"0"
>
<item
row=
"15"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_15"
>
<property
name=
"text"
>
<string>
Throne Count
</string>
</property>
</widget>
</item>
<item
row=
"15"
column=
"1"
>
<widget
class=
"QLabel"
name=
"throneCount"
>
<property
name=
"text"
>
<string>
N/A
</string>
</property>
</widget>
</item>
<item
row=
"16"
column=
"0"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
...
...
@@ -337,21 +341,7 @@
</size>
</property>
</spacer>
</item>
<item
row=
"9"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_15"
>
<property
name=
"text"
>
<string>
Throne Count
</string>
</property>
</widget>
</item>
<item
row=
"9"
column=
"1"
>
<widget
class=
"QLabel"
name=
"throneCount"
>
<property
name=
"text"
>
<string>
N/A
</string>
</property>
</widget>
</item>
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"tab_console"
>
...
...
@@ -695,4 +685,4 @@
<include
location=
"../crowncoin.qrc"
/>
</resources>
<connections/>
</ui>
</ui>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/qt/paymentserver.cpp
View file @
bcde6b3e
...
...
@@ -191,7 +191,7 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[])
savedPaymentRequests
.
append
(
arg
);
SendCoinsRecipient
r
;
if
(
GUIUtil
::
parseCrowncoinURI
(
arg
,
&
r
)
&&
!
r
.
address
.
isEmpty
())
if
(
GUIUtil
::
parseCrowncoinURI
(
arg
,
&
r
)
&&
!
r
.
recipient
.
isEmpty
())
{
CCrowncoinAddress
address
(
r
.
recipient
.
toStdString
());
...
...
This diff is collapsed.
Click to expand it.
src/rpcblockchain.cpp
View file @
bcde6b3e
...
...
@@ -58,7 +58,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex)
result
.
push_back
(
Pair
(
"confirmations"
,
(
int
)
txGen
.
GetDepthInMainChain
()));
result
.
push_back
(
Pair
(
"size"
,
(
int
)
::
GetSerializeSize
(
block
,
SER_NETWORK
,
PROTOCOL_VERSION
)));
result
.
push_back
(
Pair
(
"height"
,
blockindex
->
nHeight
));
result
.
push_back
(
Pair
(
"version"
,
block
.
nVersion
));
result
.
push_back
(
Pair
(
"version"
,
block
.
nVersion
.
GetFullVersion
()
));
result
.
push_back
(
Pair
(
"merkleroot"
,
block
.
hashMerkleRoot
.
GetHex
()));
Array
txs
;
BOOST_FOREACH
(
const
CTransaction
&
tx
,
block
.
vtx
)
...
...
This diff is collapsed.
Click to expand it.
src/rpcserver.cpp
View file @
bcde6b3e
...
...
@@ -728,7 +728,7 @@ void JSONRequest::parse(const Value& valRequest)
throw
JSONRPCError
(
RPC_INVALID_REQUEST
,
"Method must be a string"
);
strMethod
=
valMethod
.
get_str
();
if
(
strMethod
!=
"getwork"
&&
strMethod
!=
"getblocktemplate"
)
LogPrint
(
"rpc"
,
"ThreadRPCServer method=%s
\n
"
,
SanitizeString
(
strMethod
);
LogPrint
(
"rpc"
,
"ThreadRPCServer method=%s
\n
"
,
SanitizeString
(
strMethod
)
)
;
// Parse params
Value
valParams
=
find_value
(
request
,
"params"
);
...
...
This diff is collapsed.
Click to expand it.
src/wallet.cpp
View file @
bcde6b3e
...
...
@@ -146,22 +146,6 @@ bool CWallet::LoadCScript(const CScript& redeemScript)
return CCryptoKeyStore::AddCScript(redeemScript);
}
bool
CWallet
::
Unlock
(
const
SecureString
&
strWalletPassphrase
)
{
/* A sanity check was added in pull #3843 to avoid adding redeemScripts
* that never can be redeemed. However, old wallets may still contain
* these. Do not add them to the wallet and warn. */
if
(
redeemScript
.
size
()
>
MAX_SCRIPT_ELEMENT_SIZE
)
{
std
::
string
strAddr
=
CCrowncoinAddress
(
redeemScript
.
GetID
()).
ToString
();
LogPrintf
(
"%s: Warning: This wallet contains a redeemScript of size %i which exceeds maximum size %i thus can never be redeemed. Do not use address %s.
\n
"
,
__func__
,
redeemScript
.
size
(),
MAX_SCRIPT_ELEMENT_SIZE
,
strAddr
);
return
true
;
}
return
CCryptoKeyStore
::
AddCScript
(
redeemScript
);
}
bool CWallet::Unlock(const SecureString& strWalletPassphrase, bool anonymizeOnly)
{
SecureString strWalletPassphraseFinal;
...
...
@@ -172,6 +156,8 @@ bool CWallet::Unlock(const SecureString& strWalletPassphrase, bool anonymizeOnly
return true;
}
strWalletPassphraseFinal = strWalletPassphrase;
CCrypter crypter;
CKeyingMaterial vMasterKey;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help