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
defunctec
crown-core
Commits
c648b589
Commit
c648b589
authored
13 years ago
by
Gavin Andresen
Browse files
Options
Download
Plain Diff
Merge pull request #459 from jgarzik/char-msgstart
Use 'unsigned char' rather than 'char' for pchMessageStart.
parents
72173ffa
25133bd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main.cpp
+1
-1
src/main.cpp
src/net.h
+1
-1
src/net.h
with
2 additions
and
2 deletions
+2
-2
src/main.cpp
View file @
c648b589
...
...
@@ -1775,7 +1775,7 @@ bool static AlreadyHave(CTxDB& txdb, const CInv& inv)
// The message start string is designed to be unlikely to occur in normal data.
// The characters are rarely used upper ascii, not valid as UTF-8, and produce
// a large 4-byte int at any alignment.
char
pchMessageStart
[
4
]
=
{
0xf9
,
0xbe
,
0xb4
,
0xd9
};
unsigned
char
pchMessageStart
[
4
]
=
{
0xf9
,
0xbe
,
0xb4
,
0xd9
};
bool
static
ProcessMessage
(
CNode
*
pfrom
,
string
strCommand
,
CDataStream
&
vRecv
)
...
...
This diff is collapsed.
Click to expand it.
src/net.h
View file @
c648b589
...
...
@@ -67,7 +67,7 @@ bool StopNode();
// (4) size
// (4) checksum
extern
char
pchMessageStart
[
4
];
extern
unsigned
char
pchMessageStart
[
4
];
class
CMessageHeader
{
...
...
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