Asset not reflecting in second node

+1 vote
Hi all.

Apologies for the noob question. I have set up 2 nodes and given node 2 connect right. I am working through the getting started tutorial - at the point where I issue my first asset on node 1, the tutorial says that I should log on to server/node 2 and check that the asset can be seen there as well. When I do a listassets on node 1 I see it, but it is not reflecting on node 2.

Has anyone else experienced this? Any guidance will be greatly appreciated.

Kind regards,

Johan
asked May 17, 2016 by johan.pretorius

1 Answer

0 votes

Hmmm, sounds unusual. Are you sure the nodes are connected together? You can use getpeerinfo to check they are in communication with each other. Also use getinfo to check they're on the same block number.

answered May 17, 2016 by MultiChain
They don't seem to be connected, but I cannot figure out why... Would it be possible for a quick webex?

Here is the output from getinfo on the two nodes:
Node 1:
[root@strate-multichain2 ~]# multichain-cli johanp2 getinfo
{"method":"getinfo","params":[],"id":1,"chain_name":"johanp2"}

{
    "version" : "1.0 alpha 9",
    "protocolversion" : 10002,
    "chainname" : "johanp2",
    "description" : "Multichain network johanp2",
    "protocol" : "multichain",
    "port" : 4403,
    "setupblocks" : 60,
    "nodeaddress" : "johanp2@192.168.18.232:4403",
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 59,
    "timeoffset" : 0,
    "connections" : 0,
    "proxy" : "",
    "difficulty" : 0.00001526,
    "testnet" : false,
    "keypoololdest" : 1463470799,
    "keypoolsize" : 2,
    "paytxfee" : 0.00000000,
    "relayfee" : 0.00000000,
    "errors" : ""
}

Node 2:
[root@strate-multichain1 ~]# multichain-cli johanp2 getinfo
{"method":"getinfo","params":[],"id":1,"chain_name":"johanp2"}

{
    "version" : "1.0 alpha 9",
    "protocolversion" : 10002,
    "chainname" : "johanp2",
    "description" : "Multichain network johanp2",
    "protocol" : "multichain",
    "port" : 4403,
    "setupblocks" : 60,
    "nodeaddress" : "johanp2@192.168.18.231:4403",
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 41,
    "timeoffset" : 0,
    "connections" : 0,
    "proxy" : "",
    "difficulty" : 0.00001526,
    "testnet" : false,
    "keypoololdest" : 1463471407,
    "keypoolsize" : 2,
    "paytxfee" : 0.00000000,
    "relayfee" : 0.00000000,
    "errors" : ""
}

The way I start the nodes is:
On node 1:
multichaind johanp2 -daemon
On node 2 (after granting connect to node 2):
multichaind johanp2@192.168.18.232:4403 -daemon

I might be doing this incorrectly.

Kind regards,
Johan
First you are using a *really* old version, so it's probably worth upgrading before trying again. Second what does getpeerinfo show?
On both nodes I get the following:

[root@strate-multichain2 ~]# multichain-cli johanp2 getpeerinfo
{"method":"getpeerinfo","params":[],"id":1,"chain_name":"johanp2"}

[
]

Thanks, I wasn't aware that there were newer versions. I will get the latest and reinstall it.
Yes, best to start with that, then let me know if the problem persists.
The upgrade worked perfectly. Sorry about that - I should have checked the version.
No worries - glad it's resolved.
...