Some requests are not really intended for end users. They are used internally. For example, end users should never send SendPcnMessage command to us, as they may not be aware of current state and don't know how to assemble correct message.
We should stabilize some user-facing APIs and clearly separate external API from internal network commands.
Currently we almost directly expose the network actor commands to http endpoint https://github.com/contrun/ckb-pcn-node/blob/e62bf994c2b0c7abfc368f3662172f97ee12f17e/src/rpc/mod.rs#L123-L156
This will cause several problems.
SendPcnMessage
command to us, as they may not be aware of current state and don't know how to assemble correct message.We should stabilize some user-facing APIs and clearly separate external API from internal network commands.