web3j icon indicating copy to clipboard operation
web3j copied to clipboard

pendingTransactionFlowable non deterministic issue

Open adkr opened this issue 1 year ago • 1 comments

pendingTransactionFlowable removes '0' in filterId

pendingTransactionFlowable doesn't work randomly due to different filterId used between RPC calls.

Steps To Reproduce

Issue is non deterministic.

Expected behavior

FilterId registered for the purpose of pending transactions monitoring and used in getFilterChanges should be the same.

Actual behavior

FilterId from filter registration and monitoring calls (getFilterChanges) differs.

Environment

  • Web3j version: 4.12.2
  • Java: 21
  • Operating System: Windows

Additional context

web3j-pendingTransactionFlowable

adkr avatar Dec 12 '24 12:12 adkr

Unfortunately, same issue again... image It happens in the context of the web3j.pendingTransactionFlowable method call. Please note that removed "0" in getFilterChanges comparing to a filter id returned at the beginning.

About behavior... Since my first post web3j "just" started working fine after multiple re-runs. Never happened again until today.

adkr avatar Jan 14 '25 11:01 adkr

Could you please provide more details about what is the network you use and the code you used for producing this bug

bodyhedia44 avatar Aug 01 '25 12:08 bodyhedia44

Image

bodyhedia44 avatar Aug 07 '25 12:08 bodyhedia44

This is the code we tried, and everything seems in order

bodyhedia44 avatar Aug 07 '25 12:08 bodyhedia44