For test purposes, I would like to make test blocks including test transactions against main net.

For example I would like to make a transaction that sends one ether from 0x1234567... to 0x99999999... Assume for a minute that 0x1234567... does actually on main net have one ether plus gas fees available to send.

I would like to:

  1. Disconnect from network syncing
  2. Prepare this send transaction
  3. Sign it (using a bogus private key)
  4. Mine a block on my client including that transaction (using a difficulty=0 proof of work)

This would require to temporarily disable two security features of Parity to make this work:

  1. Transaction signature checking
  2. Block proof of work difficulty checking

Is it possible to perform testing in this way?

  • 1
    Parity is open source so you should be able to modify it to disable verification of transactions and blocks. – Ismael Jul 12 '18 at 22:38
  • The motivation for this question is testing smart contracts that are already deployed. More information on that is at 0xcert.org/news/… – William Entriken Apr 14 at 20:17
  • Ganache allows forking of an existing blockchain and to generate new transactions from accounts without the private key, but is is written in javascript. It should be technically feasible to do something similar with parity. – Ismael Apr 14 at 23:09

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.