If I create a nested filter.watch
filter_a.watch( filter_b.watch(); );
If I call
does filter_b.watch() go out of scope for web3.js? Does geth keeps sending filter_b.watch() results?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
filter b will still be polled and receive logs. And as you should provide a callback for filter b, this callback will still be called.
filter_b.watch() will simply take the callback given and call it as often as there are logs matching the callback come.