Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dunixir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
teaching
dunixir
Merge requests
!46
Resolve "Validation locale"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Validation locale"
192-validation-locale
into
dev
Overview
15
Commits
19
Pipelines
12
Changes
30
Merged
Resolve "Validation locale"
ABDELGHANI Nassim
requested to merge
192-validation-locale
into
dev
Feb 28, 2022
Overview
15
Commits
19
Pipelines
12
Changes
30
Closes
#192 (closed)
Edited
Mar 21, 2022
by
ABDELGHANI Nassim
0
0
Merge request reports
Compare
dev
version 10
43ed3010
Mar 17, 2022
version 9
2eef7e9c
Mar 17, 2022
version 8
be3ef296
Mar 15, 2022
version 7
7ac24538
Mar 15, 2022
version 6
3bed206b
Mar 14, 2022
version 5
0e58a63d
Mar 5, 2022
version 4
0e273510
Mar 3, 2022
version 3
674542ea
Feb 28, 2022
version 2
64ed18f4
Feb 28, 2022
version 1
47e8e09b
Feb 28, 2022
dev (base)
and
latest version
latest version
f26909ec
19 commits,
Mar 21, 2022
version 10
43ed3010
19 commits,
Mar 17, 2022
version 9
2eef7e9c
18 commits,
Mar 17, 2022
version 8
be3ef296
11 commits,
Mar 15, 2022
version 7
7ac24538
11 commits,
Mar 15, 2022
version 6
3bed206b
10 commits,
Mar 14, 2022
version 5
0e58a63d
7 commits,
Mar 5, 2022
version 4
0e273510
5 commits,
Mar 3, 2022
version 3
674542ea
4 commits,
Feb 28, 2022
version 2
64ed18f4
2 commits,
Feb 28, 2022
version 1
47e8e09b
1 commit,
Feb 28, 2022
30 files
+
881
−
73
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
30
lib/block/validation/local/transaction/transaction_count.ex
+
5
−
0
View file @ f26909ec
Edit in single-file editor
Open in Web IDE
Show full file
defmodule
Block
.
Validation
.
Local
.
TransactionCount
do
@moduledoc
"""
Signatures count must be the same as issuers count
https://git.duniter.org/documents/rfcs/-/blob/master/rfc/0010_Duniter_Blockchain_Protocol_V12.md#transactions
"""
def
valid
(
block
)
do
Enum
.
all?
(
block
[
"transactions"
],
fn
element
->
length
(
element
[
"signatures"
])
==
length
(
element
[
"issuers"
])
Loading