Skip to content
Snippets Groups Projects
Commit 013b4063 authored by kristofszentes's avatar kristofszentes
Browse files

Merge branch 'kristof' of gitlab.imt-atlantique.fr:dunixir/dunixir into kristof

parents 52f53b30 67186e61
No related branches found
No related tags found
No related merge requests found
......@@ -322,67 +322,89 @@ defmodule Index.Augmentation do
end
end
##BR_G51
@doc """
Validation rule BR_G51
"""
def ruleNumber(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.number == block.number
end
##BR_G52
@doc """
Validation rule BR_G52
"""
def rulePreviousHash(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.previousHash == block.previousHash
end
##BR_G53
@doc """
Validation rule BR_G53
"""
def rulePreviousIssuer(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.previousIssuer == block.previousIssuer
end
##BR_G54
@doc """
Validation rule BR_G54
"""
def ruleIssuersCount(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.issuersCount == block.issuersCount
end
##BR_G55
@doc """
Validation rule BR_G55
"""
def ruleIssuersFrame(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.issuersFrame == block.issuersFrame
end
##BR_G56
@doc """
Validation rule BR_G56
"""
def ruleIssuersFrameVar(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.issuersFrameVar == block.issuersFrameVar
end
##BR_G57
@doc """
Validation rule BR_G57
"""
def ruleMedianTime(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.medianTime == block.medianTime
end
##BR_G58
@doc """
Validation rule BR_G58
"""
def ruleDividend(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.new_dividend == block.dividend
end
##BR_G59
@doc """
Validation rule BR_G59
"""
def ruleUnitBase(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.unitBase == block.unitBase
end
##BR_G60
@doc """
Validation rule BR_G60
"""
def ruleMembersCount(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
head.membersCount == block.membersCount
end
##BR_G61
@doc """
Validation rule BR_G61
"""
def rulePowMin(block, local_bindex) do
[{key, head}] = IndexUtility.find_first_local_bindex_entry(local_bindex)
if head.number > 0 do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment