Fix a few bugs in the p2p integration that were preventing transactions
from being sent across the network correctly