@leofcoin/chain 1.7.137 → 1.7.138

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.
@@ -4754,11 +4754,8 @@ class State extends Contract {
4754
4754
  });
4755
4755
  };
4756
4756
  this.#lastBlockHandler = async () => {
4757
- const lastBlock = await this.lastBlock;
4758
- // Don't advertise 0x0 as a valid block to other peers
4759
- const response = lastBlock.hash !== '0x0' ? lastBlock : undefined;
4760
4757
  return new globalThis.peernet.protos['peernet-response']({
4761
- response
4758
+ response: await this.lastBlock
4762
4759
  });
4763
4760
  };
4764
4761
  this.#knownBlocksHandler = async () => {
package/exports/chain.js CHANGED
@@ -881,11 +881,8 @@ class State extends Contract {
881
881
  });
882
882
  };
883
883
  this.#lastBlockHandler = async () => {
884
- const lastBlock = await this.lastBlock;
885
- // Don't advertise 0x0 as a valid block to other peers
886
- const response = lastBlock.hash !== '0x0' ? lastBlock : undefined;
887
884
  return new globalThis.peernet.protos['peernet-response']({
888
- response
885
+ response: await this.lastBlock
889
886
  });
890
887
  };
891
888
  this.#knownBlocksHandler = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.137",
3
+ "version": "1.7.138",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {