Skip to content

shh_getFilterMessages always returns empty array #4

@kclowes

Description

@kclowes
  • Parity Ethereum version: 2.2.11
  • Operating system: MacOS
  • Installation: homebrew
  • Fully synchronized: yes
  • Network: dev
  • Restarted: no

Parity client running with the following options:
parity --config dev -lrpc=trace --whisper

When running the following snippet from web3.py:

from web3.auto import w3 
from web3.shh import Shh 
shh = Shh(w3) 
kp = shh.newKeyPair()
pubkey = shh.getPublicKey(kp)
privkey = shh.getPrivateKey(kp)
flt = shh.newMessageFilter({'topics': ['0x12345678'], 'privateKeyID': kp})
shh.post({ 
             'from': kp,
             'payload': w3.toHex(text="This is a test!"),
             'to': {'public': pubkey}, 
             'topics': ['0x12345678'],
             'priority': 1000, 
             'ttl': 100, 
}) 
received_messages = shh.getMessages(flt.filter_id)

received_messages which calls shh_getFilterMessages under the hood, comes back with an empty result ({"jsonrpc":"2.0","result":[],"id":14}.), even though there should be a message. Any hints would be awesome! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions