Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
7abdd562
Unverified
Commit
7abdd562
authored
Sep 07, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3228
parent
6249af9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
LevelDB.cpp
LevelDB.cpp
+3
-3
ServerDataChecker.cpp
ServerDataChecker.cpp
+1
-1
No files found.
LevelDB.cpp
View file @
7abdd562
...
...
@@ -154,11 +154,11 @@ std::vector<string> LevelDB::writeKeysToVector1(uint64_t _maxKeysToVisit){
return
keys
;
}
void
LevelDB
::
writeDataUnique
(
const
string
&
N
ame
,
const
string
&
value
)
{
auto
key
=
N
ame
;
void
LevelDB
::
writeDataUnique
(
const
string
&
n
ame
,
const
string
&
value
)
{
auto
key
=
n
ame
;
if
(
readString
(
Name
)
!=
nullptr
)
{
spdlog
::
debug
(
"
name {}"
,
Name
,
" already exists"
);
spdlog
::
debug
(
"
Name {} already exists"
,
name
);
throw
SGXException
(
KEY_SHARE_ALREADY_EXISTS
,
"Data with this name already exists"
);
}
...
...
ServerDataChecker.cpp
View file @
7abdd562
...
...
@@ -72,7 +72,7 @@ bool checkECDSAKeyName(const string& keyName) {
bool
checkHex
(
const
string
&
hex
,
const
uint32_t
sizeInBytes
){
if
(
hex
.
length
()
>
sizeInBytes
*
2
||
hex
.
length
()
==
0
){
spdlog
::
error
(
"key is too long or zero
-
"
,
hex
.
length
());
spdlog
::
error
(
"key is too long or zero
{}
"
,
hex
.
length
());
return
false
;
}
...
...
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