1

I am using go-ethereum private network.

I am using the web3.shh.filter() and it is working fine.

I am not able to locate the filter() function in the code.

In complete go-ethereum folder, I am not able to locate it.

filter.get() produces output correctly with expiry time and all. But I am not able to locate "expiry" word in the complete folder.

Can some one help me to locate this.

1

For the filters, it just requires the filters.js file, as per this line in shh.js:

var Filter = require('../filter');

The .get() function is in filter.js, here.

The filter code likely doesn't actually know what the expiry field is: it's probably just abstract data that is later formatted appropriately (for example, here).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.