Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
This repository was archived by the owner on May 24, 2022. It is now read-only.

With IpcProvider, some messages are truncated #562

@amaury1093

Description

@amaury1093

On my branch with some console.warns added, I have the following logs:

Screenshot 2019-10-23 at 17 02 44

So I see 2 bugs here:

  • we're receiving unknown subscription results to subscriptions we didn't add to this._subscriptionsToId (this might or might not be easily solvable)
  • but the big one: we're receiving truncated messages!

1st message:

{"jsonrpc":"2.0","method":"eth_subscription","params":{"result

2nd message:

:{"author":"0x596e8221a30bfe6e7eff67fee664a01c73ba3c56","difficulty":"0xfffffffffffffffffffffffffffffffe","extraData":"0xde830206048f5061726974792d457468657265756d86312e33362e30826c69","gasLimit":"0x989680","gasUsed":"0xe571","hash":"0x793a5d23c968bc662f1f6c6cc2d97e04f60cb81292a80060c9719bf9d99916b7","logsBloom":"0x00000000000000000000000020000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x596e8221a30bfe6e7eff67fee664a01c73ba3c56","number":"0xdaaa11","parentHash":"0xf27c6934b0efa9dcf8e4f7a3aa68a86af95d058daebc1698186d222b3e8cb589","receiptsRoot":"0x3628a59e580e19ed637c24e62d154b9840c1a152e5b57623ac1f070c89931b91","sealFields":["0x176c1ab3","0xd955e6c7bfc8779ca6a86c9f2ae0a5ae8c966e2667b9400eefedaba333548d425d7be2c7697af5a85c47e9922c41719a6664d25e92fcb78430fb87613525ff2500"],"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x249","stateRoot":"0x774a2ff4c4c3f9d61706e3728411196a234dc4726fccf59db4b7c32c37c96807","timestamp":"0x5db06acc","transactionsRoot":"0xdd485d88bfa4ff924cb92bb1ac1934add205624b03f8776b490c666e38ac20c5"},"subscription":"0x2258cc96ec363e71"}}

This might be due to using IPC.

cc @Tbaut @axelchalon

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions