0

First I followed this demo PoA tutorial to build a private PoA network using Parity.

Then I wanted to use truffle to compile and deploy a smart contract. I tested the deployment using ganache test network and it worked perfectly.

The problem is I'm getting stuck at Saving successful migration to network... when executing truffle migrate.

Console logs:

Deploying Migrations...
  ... 0x1718ab5286162cd35d2613cf118bcdac62dc013ffd158bcb5e0aa83efb0056a6
  Migrations: 0x148a3da3fab0ce71af3bb23d08e73c9c3e52e1c8
Saving successful migration to network...

From the running node logs I can see that a new transaction is mined, but only one.

truffle.js config file:

module.exports = {
      networks: {
        development: {
          host: "localhost",
          port: 8540,
          network_id: "*", // Match any network id
          from: "0x004ec07d2329997267Ec62b4166639513386F32E",
          password: "password"
        },
        ganache : {
          host: "localhost",
          port: 8545,
          network_id: "*", // Match any network id
        }
      }
};

1_initial_migration.js

var Migrations = artifacts.require("./Migrations.sol");

const Web3 = require("web3");
const TruffleConfig = require('../truffle');


module.exports = function(deployer, network) {
  const config = TruffleConfig.networks[network];
  const web3 = new Web3(new Web3.providers.HttpProvider('http://' + config.host + ':' + config.port));
  console.log('>> Unlocking account ' + config.from, "with password: " + config.password);
  web3.eth.personal.unlockAccount(config.from, config.password);
  deployer.deploy(Migrations);
};

Can someone explain to me what happens exactly during the "Saving migration" step? And what could be the cause of this blocking?

  • You can read a bit more about the migrations for example here: medium.com/@blockchain101/… . Unfortunately I don't have much Parity experience so can't help you with your actual problem. As it works with Ganache, the problem is probably related to Parity in some way. – Lauri Peltonen Nov 3 '18 at 23:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.