@typeberry/jam 0.2.0-5659c51 → 0.2.0-661fe38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28624,6 +28624,8 @@ const EC_SEGMENT_SIZE = 4104;
28624
28624
  * Additional data that has to be passed to the codec to correctly parse incoming bytes.
28625
28625
  */
28626
28626
  class ChainSpec extends WithDebug {
28627
+ /** Human-readable name of the chain spec. */
28628
+ name;
28627
28629
  /** Number of validators. */
28628
28630
  validatorsCount;
28629
28631
  /** 1/3 of number of validators */
@@ -28666,6 +28668,7 @@ class ChainSpec extends WithDebug {
28666
28668
  maxLookupAnchorAge;
28667
28669
  constructor(data) {
28668
28670
  super();
28671
+ this.name = data.name;
28669
28672
  this.validatorsCount = data.validatorsCount;
28670
28673
  this.thirdOfValidators = numbers_tryAsU16(Math.floor(data.validatorsCount / 3));
28671
28674
  this.validatorsSuperMajority = numbers_tryAsU16(Math.floor(data.validatorsCount / 3) * 2 + 1);
@@ -28686,6 +28689,7 @@ class ChainSpec extends WithDebug {
28686
28689
  }
28687
28690
  /** Set of values for "tiny" chain as defined in JAM test vectors. */
28688
28691
  const tinyChainSpec = new ChainSpec({
28692
+ name: "tiny",
28689
28693
  validatorsCount: numbers_tryAsU16(6),
28690
28694
  coresCount: numbers_tryAsU16(2),
28691
28695
  epochLength: numbers_tryAsU32(12),
@@ -28707,6 +28711,7 @@ const tinyChainSpec = new ChainSpec({
28707
28711
  * Please note that only validatorsCount and epochLength are "full", the rest is copied from "tiny".
28708
28712
  */
28709
28713
  const fullChainSpec = new ChainSpec({
28714
+ name: "full",
28710
28715
  validatorsCount: numbers_tryAsU16(1023),
28711
28716
  coresCount: numbers_tryAsU16(341),
28712
28717
  epochLength: numbers_tryAsU32(600),
@@ -31325,7 +31330,7 @@ const DEFAULT_CONFIG = "default";
31325
31330
  const NODE_DEFAULTS = {
31326
31331
  name: isBrowser() ? "browser" : external_node_os_default().hostname(),
31327
31332
  config: [DEFAULT_CONFIG],
31328
- pvm: PvmBackend.BuiltIn,
31333
+ pvm: PvmBackend.Ananas,
31329
31334
  };
31330
31335
  /** Chain spec chooser. */
31331
31336
  var KnownChainSpec;