Skip to content
Snippets Groups Projects
Commit 69180833 authored by ABDELGHANI Nassim's avatar ABDELGHANI Nassim Committed by ABDELGHANI Nassim
Browse files

add nonce integer check

parent 3b0802ee
Branches
Tags
1 merge request!46Resolve "Validation locale"
......@@ -3,6 +3,6 @@ defmodule Block.Validation.Local.Nonce do
https://git.duniter.org/documents/rfcs/-/blob/master/rfc/0010_Duniter_Blockchain_Protocol_V12.md#nonce
"""
def valid(block) do
block["nonce"] >= 0
is_integer(block["nonce"]) and block["nonce"] >= 0
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment