Problem connecting validator nodes (Error{Failed to decrypt SecretConnection})

I am attempting to connect two validating peers. I have followed the steps listed at:
https://tendermint.readthedocs.io/en/v0.19.5/using-tendermint.html#configuration
I have added connection to each other in the corresponding config.toml files. One has:

persistent_peers = "a44b90592dee1ccec75e93a981c86a95e6e239ad@172.17.0.1:26656"

The other has:

persistent_peers = "1e859fc36563630037b96cb9dd2a1f10bd90f939@172.17.0.2:26656"

I have also filled and copied the validators section in genesis. like so:

"validators": [
    {
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "88EzQCqekvcn1UvFh9zCwkayEmHhig4z8dlqTZy+0fg="
      },
      "power": "10",
      "name": "nodeHost"
    },
    {
     "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "CZdzdLAejcw8k5lnXkuD1Neu73xhojd5+Hgj/X5OsI0="
      },
       "power": "10",
       "name": "nodeContainer"
     }
  ],

The value of the public keys I have taken from the corresponding priv_validator.json files.

On starting the nodes with ‘tendermint node’ I receive the following error in both terminals:

 Dialing failed                               module=p2p addr=1e859fc36563630037b96cb9dd2a1f10bd90f939@172.17.0.2:26656 err="Error{Failed to decrypt SecretConnection}" attempts=9

Could anyone please assist me in the right direction to debug this. Thanks.

A bit of follow up on my problem. I noticed that there is was a difference between the Tendermint versions I was using between the two nodes. One was 0.22 and the other was 0.23. After updating both to 0.24 I did not observer the problem any more.