How to calculate a candidate block for mining using bitcoind RPC (without getBlockTemplate) and having into acount MAX_BLOCK_SIGOPS

I’m trying to calculate candidate blocks without using getBlockTemplate. Im using the data returned by bitcoind RPC, but I can’t find a reliable way to get the required signatures per transaction in the mempool. The only way I see to get reqSigs (required signature) of a transaction output is via getRawTransaction. So: -If I get…

Not able to populate my smart contract with data after deployment

I want to populate my smart contract with data. I am using truffle framework. In migrations file for the smart contract I’m populating the data but it is giving error: TypeError: instance.create is not a function at newFunction (/home/user/Desktop/new/migrations/2_initial_migration.js:17:14) Migration File: var Storage = artifacts.require(“./Storage.sol”); module.exports = function(deployer) { deployer.deploy(Storage) .then(() => Storage.deployed()) .then((instance) =>…