Commit Graph

95 Commits

Author SHA1 Message Date
Csaba Kiraly 03bfe0a8aa
Merge branch 'develop' into published-copies
# Conflicts:
#	smallConf.py
2024-03-04 17:29:28 +01:00
Csaba Kiraly 5e0afdd233
Merge branch 'node-and-validator' into develop
# Conflicts:
#	DAS/node.py
#	DAS/shape.py
#	DAS/simulator.py
#	smallConf.py
2024-03-04 11:54:25 +01:00
Csaba Kiraly b22a096cbc
set number of copies of rows/columns published
Sets how many copies are sent out by the block producer over
rows and over columns.
Note, previously this was set to match netDegree in both
dimensions. We keep this default.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-03-04 10:17:46 +01:00
Csaba Kiraly 911ee6b6e4
fix validator progress counter
if custody is based on the requirements of underlying individual
validators, we can get detailed data on how many validated.
Otherwise, we can only use the weighted average.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-03-01 10:46:24 +01:00
Leonardo Bautista-Gomez a1f43578db Change row and column custody. Rename blockSizeR and blockSizeC 2024-02-27 21:35:51 +01:00
Csaba Kiraly 36d098cea3
Merge branch 'visual'
New visualizer module with updated plots, and plotting after each run.
2024-02-19 13:53:15 +01:00
Arunima Chaudhuri 7e388ba8ca Merge branch 'maliciousNode' of https://github.com/status-im/das-research into maliciousNode 2024-02-18 22:16:24 +05:30
Arunima Chaudhuri 94b9f4bdae add expectd line in graph&rem evenLineDist in conf
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
2024-02-18 22:16:16 +05:30
Sudipta Basak 6acf8a8285 fixed columns array size 2024-02-18 14:22:57 +01:00
Arunima Chaudhuri 7875023ef0 Independent dimensions
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
2024-02-15 23:48:30 +05:30
Csaba Kiraly 5a249fe238
adding individual Validator objects behind Node
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-02-06 11:28:15 +01:00
Csaba Kiraly d782e9c5ab
fixup: renaming 2024-02-06 11:28:06 +01:00
Csaba Kiraly 5951a90056
renaming Validator object to Node
In the SubnetDas model Nodes behave as previous validators,
getting samples (whole columns) from GossipSub.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-02-05 14:22:29 +01:00
Arunima Chaudhuri 7ed3d8c690 Debugged to ensure accurate results
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
2024-02-02 23:27:38 +05:30
Arunima Chaudhuri f2a51eb8e1 Introduce randomization for malicious nodes
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
2024-01-23 01:46:18 +05:30
Arunima Chaudhuri eb8588df9f Introduce 'maliciousNode' parameter
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
2024-01-21 01:27:17 +05:30
Csaba Kiraly b49be37489
handle two dimensions on Chi separately
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

# Conflicts:
#	DAS/simulator.py
#	DAS/validator.py
2023-07-12 14:13:05 +02:00
Csaba Kiraly e18822b8aa
handle 2 dimensions separately (except visualizer)
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

# Conflicts:
#	DAS/simulator.py
#	DAS/validator.py
2023-07-12 14:13:05 +02:00
Csaba Kiraly db5fd6c157
add TODO on proposerPublishTo
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-07-12 14:12:36 +02:00
leobago 562ef5122f More output 2023-06-11 19:30:10 +02:00
Csaba Kiraly 16e32a3f98
Merge branch 'develop' into failureMode 2023-05-02 15:05:54 +02:00
Csaba Kiraly 293914e1c3
move initBlock code after network setup
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-05-02 13:47:08 +02:00
Csaba Kiraly 06e70e1b40
configure bandwidth in mbps
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-05-02 13:37:57 +02:00
Leonardo Bautista-Gomez dfec7bcde8
Clearer debugging data and add row/column distribution to results 2023-05-02 12:22:21 +02:00
Csaba Kiraly f47f46a330
fix validator assignment when evenLineDistribution = True
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-05-02 12:19:08 +02:00
Csaba Kiraly 08e67cbeb1
measure validation progress more precisely
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-05-02 12:19:08 +02:00
Leo b2df64f8b9
Merge pull request #42 from status-im/failureRate-exact
make failureRate exact
2023-04-19 16:52:08 +02:00
Csaba Kiraly 1638a18507
make failureRate exact
simplify code and make sure failureRate is the exact
portion of segments missing, not just a probability per
sample.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-18 14:54:38 +02:00
Csaba Kiraly b74ac19557
fixup: increase step counter while steps4StopCondition
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-18 12:49:59 +02:00
Leonardo Bautista-Gomez d51cefabb7 Merge branch 'addDiagnostics' into develop 2023-04-13 13:39:33 +02:00
Leonardo Bautista-Gomez c4ad3cf80e Small fix 2023-03-30 16:10:10 +02:00
Leonardo Bautista-Gomez ae36844e7f Add stop condition fix 2023-03-30 14:26:14 +02:00
Leonardo Bautista-Gomez d2a653b07c Remove plotting config 2023-03-30 14:11:12 +02:00
Leonardo Bautista-Gomez 1ae4352dad Fix merge remote-tracking branch 'origin/develop' into addDiagnostics 2023-03-30 14:06:17 +02:00
Leonardo Bautista-Gomez 699a912991 Merge branch 'develop' into addDiagnostics 2023-03-30 13:56:09 +02:00
Leonardo Bautista-Gomez 4b7bf81cee Remove stop condition fix 2023-03-30 13:52:40 +02:00
Leonardo Bautista-Gomez 98423d29c0 Typos and sets 2023-03-30 13:49:01 +02:00
Csaba Kiraly 1b4a225114
Merge pull request #35 from status-im/issue-29
Solving Issue 29 partially. Still remains the problems of stop condition.
2023-03-30 13:46:00 +02:00
Leo 7719f84a10
Switch from time steps to miliseconds (#30)
Switch from time steps to miliseconds
2023-03-30 13:41:50 +02:00
Leonardo Bautista-Gomez 296c4fb762 Rows and columns to sets 2023-03-30 13:36:48 +02:00
Leonardo Bautista-Gomez 795bb1d10d Move set to simulator for future diagnostic purposes 2023-03-30 13:15:42 +02:00
Leonardo Bautista-Gomez 9800161ac9 Switch from time steps to miliseconds. Rebase to traffic progress. 2023-03-30 11:35:44 +02:00
Leonardo Bautista-Gomez e285890fa7 Fixes allocation bug, remove duplicates in rowIDs and columnIDs, add diagnostics when the block is not available. Add number of steps without progress to stop condition. 2023-03-29 16:42:09 +02:00
Csaba Kiraly f85cdb401b
fix line allocation when evenLineDistribution=True
vector should have chi elements for each validator

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-29 15:49:52 +02:00
Csaba Kiraly 75a9b484e9
fixup: close plot to release memory
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 23:28:12 +02:00
Csaba Kiraly dc51727b32
plot progress per run
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 23:16:05 +02:00
Csaba Kiraly eb4f451303
save progress and traffic statistics to XML
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 23:15:44 +02:00
Csaba Kiraly 23af30e381
add generalized metrics collection
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:29:22 +02:00
Csaba Kiraly 7e4074938a
add duplicate statistics
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:29:22 +02:00
Csaba Kiraly 6616cc799f
move traffic stats calculation to observer
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:29:20 +02:00