Feature Request: Implement Discrete Event Simulator

オープン
#299 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust

調査の方向性

ファイルやテストは指定されていません。まず現在の実時間クロックの倍率とシミュレーターのエントリポイントを追跡し、次に sim-node のレイテンシーやその他のインターセプターがイベントスケジューリングとどのように相互作用するかを確認してください。シミュレーションが実際にスリープせずに内部時間を次のイベントまで進め、レイテンシーとインターセプターの動作を維持できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

feature

Describe desired feature

Right now we simulate time speedups by applying a multiplier to our real wall clock to offer some increase in speed. This means that the simulator will still sleep, just for a much shorter period of time, which isn't a great way to run simulations when you want to run long-waiting simulations.

An alternative it to write a discrete event simulator, which always progresses its internal time report the next timestamp that we need to sleep until. This way, we're always artifically jumping into the future rather than pausing for a real sleep that has no point.

I suspect that this will get pretty sticky when we need to implement latency in sim-node (and consider other interceptors). Opening this issue up for design discusion.

Use case for feature

Faster simultions, moar good.

Would you like to contribute code for this feature?

Happy to collaborate on design for this one, but given the expected complexity I'll probably take it on myself.

主要言語
Rust
スター
80
フォーク
44
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bitcoin-dev-project/sim-ln のほかの issue

bitcoin-dev-project/sim-ln の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。