Skip to content

Commit

Permalink
added extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Sep 2, 2024
1 parent 16efcbf commit 9325c74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rpc/quorums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ static RPCHelpMan quorum_submit_sk_share()
if (node.evodb->GetRawDB().Write(quorum_sk_share_key, sk_share)) {
ret.pushKV("operation", "skShare already exists and successfully overwritten with the one provided");
}
else {
ret.pushKV("operation", "skShare already exists and overwriting FAILED");
}
}
else {
ret.pushKV("operation", "skShare already exists and is different to the one provided. not overwriting");
Expand All @@ -337,6 +340,9 @@ static RPCHelpMan quorum_submit_sk_share()
if (node.evodb->GetRawDB().Write(quorum_sk_share_key, sk_share)) {
ret.pushKV("operation", "skShare doesn't exist. Successfully submitted the one provided");
}
else {
ret.pushKV("operation", "skShare doesn't exist. Submission FAILED");
}
}

return ret;
Expand Down

0 comments on commit 9325c74

Please sign in to comment.