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

fix validation universal dividend

parent e1afcac0
No related branches found
No related tags found
1 merge request!46Resolve "Validation locale"
......@@ -3,6 +3,6 @@ defmodule Block.Validation.Local.UniversalDividend do
https://git.duniter.org/documents/rfcs/-/blob/master/rfc/0010_Duniter_Blockchain_Protocol_V12.md#universal-dividend
"""
def valid(block) do
block["number"] === 0 and block["dividend"] === nil
if block["number"] === 0, do: block["dividend"] === nil, else: true
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment