public TransactionHistoryStore(IRevokingDatabase revoking_database, string db_name = "transaction_history_store") : base(revoking_database, db_name) { }
public WitnessScheduleStore(IRevokingDatabase revoking_database, string db_name = "witness_schedule") : base(revoking_database, db_name) { }
public DelegatedResourceStore(IRevokingDatabase revoking_database, string db_name = "delegated-resource") : base(revoking_database, db_name) { }
public TransactionStore(IRevokingDatabase revoking_database, BlockStore block, KhaosDatabase khaos, string db_name = "transaction") : base(revoking_database, db_name) { this.block_store = block; this.khaos_database = khaos; }
public AccountIndexStore(IRevokingDatabase revoking_database, string db_name = "account-index") : base(revoking_database, db_name) { }
public TransactionCache(IRevokingDatabase revoking_database, string db_name = "trans-cache") : base(revoking_database, db_name, typeof(TxCacheDB)) { }
public BlockStore(IRevokingDatabase revoking_database, string db_name = "block") : base(revoking_database, db_name) { }
public DynamicPropertiesStore(IRevokingDatabase revoking_database, string db_name = "properties") : base(revoking_database, db_name) { try { GetTotalSignNum(); } catch { PutTotalSignNum(5); } try { GetAllowMultiSign(); } catch { PutAllowMultiSign((int)Args.Instance.Committe.AllowMultiSign); } try { GetLatestBlockHeaderTimestamp(); } catch { PutLatestBlockHeaderTimestamp(0); } try { GetLatestBlockHeaderNumber(); } catch { PutLatestBlockHeaderNumber(0); } try { GetLatestBlockHeaderHash(); } catch { PutLatestBlockHeaderHash(ByteString.CopyFrom("00".HexToBytes())); } try { GetStateFlag(); } catch { PutStateFlag(0); } try { GetLatestSolidifiedBlockNum(); } catch { PutLatestSolidifiedBlockNum(0); } try { GetLatestProposalNum(); } catch { PutLatestProposalNum(0); } try { GetLatestExchangeNum(); } catch { PutLatestExchangeNum(0); } try { GetBlockFilledSlotsIndex(); } catch { PutBlockFilledSlotsIndex(0); } try { GetTokenIdNum(); } catch { PutTokenIdNum(1000000L); } try { GetTokenUpdateDone(); } catch { PutTokenUpdateDone(0); } try { GetMaxFrozenTime(); } catch { PutMaxFrozenTime(3); } try { GetMinFrozenTime(); } catch { PutMinFrozenTime(3); } try { GetMaxFrozenSupplyNumber(); } catch { PutMaxFrozenSupplyNumber(10); } try { GetMaxFrozenSupplyTime(); } catch { PutMaxFrozenSupplyTime(3652); } try { GetMinFrozenSupplyTime(); } catch { PutMinFrozenSupplyTime(1); } try { GetWitnessAllowanceFrozenTime(); } catch { PutWitnessAllowanceFrozenTime(1); } try { GetWitnessPayPerBlock(); } catch { PutWitnessPayPerBlock(32000000L); } try { GetWitnessStandbyAllowance(); } catch { PutWitnessStandbyAllowance(115_200_000_000L); } try { GetMaintenanceTimeInterval(); } catch { PutMaintenanceTimeInterval((int)Args.Instance.Block.MaintenanceTimeInterval); } try { GetAccountUpgradeCost(); } catch { PutAccountUpgradeCost(9_999_000_000L); } try { GetPublicNetUsage(); } catch { PutPublicNetUsage(0L); } try { GetOneDayNetLimit(); } catch { PutOneDayNetLimit(57_600_000_000L); } try { GetPublicNetLimit(); } catch { PutPublicNetLimit(14_400_000_000L); } try { GetPublicNetTime(); } catch { PutPublicNetTime(0L); } try { GetFreeNetLimit(); } catch { PutFreeNetLimit(5000L); } try { GetTotalNetWeight(); } catch { PutTotalNetWeight(0L); } try { GetTotalNetLimit(); } catch { PutTotalNetLimit(43_200_000_000L); } try { GetTotalEnergyWeight(); } catch { PutTotalEnergyWeight(0L); } try { GetAllowAdaptiveEnergy(); } catch { PutAllowAdaptiveEnergy((int)Args.Instance.Committe.AllowAdaptiveEnergy); } try { GetTotalEnergyLimit(); } catch { PutTotalEnergyLimit(50_000_000_000L); } try { GetEnergyFee(); } catch { PutEnergyFee(100L); } try { GetMaxCpuTimeOfOneTx(); } catch { PutMaxCpuTimeOfOneTx(50L); } try { GetCreateAccountFee(); } catch { PutCreateAccountFee(100_000L); } try { GetCreateNewAccountFeeInSystemContract(); } catch { PutCreateNewAccountFeeInSystemContract(0L); } try { GetCreateNewAccountBandwidthRate(); } catch { PutCreateNewAccountBandwidthRate(1L); } try { GetTransactionFee(); } catch { PutTransactionFee(10L); } try { GetAssetIssueFee(); } catch { PutAssetIssueFee(1024000000L); } try { GetUpdateAccountPermissionFee(); } catch { PutUpdateAccountPermissionFee(100000000L); } try { GetMultiSignFee(); } catch { PutMultiSignFee(1000000L); } try { GetExchangeCreateFee(); } catch { PutExchangeCreateFee(1024000000L); } try { GetExchangeBalanceLimit(); } catch { PutExchangeBalanceLimit(1_000_000_000_000_000L); } try { GetTotalTransactionCost(); } catch { PutTotalTransactionCost(0L); } try { GetTotalCreateWitnessCost(); } catch { PutTotalCreateWitnessFee(0L); } try { GetTotalCreateAccountCost(); } catch { PutTotalCreateAccountFee(0L); } try { GetTotalStoragePool(); } catch { PutTotalStoragePool(100_000_000_000_000L); } try { GetTotalStorageTax(); } catch { PutTotalStorageTax(0); } try { GetTotalStorageReserved(); } catch { PutTotalStorageReserved(128L * 1024 * 1024 * 1024); } try { GetStorageExchangeTaxRate(); } catch { PutStorageExchangeTaxRate(10); } try { GetRemoveThePowerOfTheGr(); } catch { PutRemoveThePowerOfTheGr(0); } try { GetAllowDelegateResource(); } catch { PutAllowDelegateResource((int)Args.Instance.Committe.AllowDelegateResource); } try { GetAllowTvmTransferTrc10(); } catch { PutAllowTvmTransferTrc10((int)Args.Instance.Committe.AllowVMTransferTC10); } try { GetAllowTvmConstantinople(); } catch { PutAllowTvmConstantinople((int)Args.Instance.Committe.AllowVMConstantinople); } try { GetAvailableContractType(); } catch { PutAvailableContractType("7fff1fc0037e0000000000000000000000000000000000000000000000000000".HexToBytes()); } try { GetActiveDefaultOperations(); } catch { PutActiveDefaultOperations("7fff1fc0033e0000000000000000000000000000000000000000000000000000".HexToBytes()); } try { GetAllowSameTokenName(); } catch { PutAllowSameTokenName((int)Args.Instance.Committe.AllowSameTokenName); } try { GetAllowUpdateAccountName(); } catch { PutAllowUpdateAccountName(0); } try { GetAllowCreationOfContracts(); } catch { PutAllowCreationOfContracts((int)Args.Instance.Committe.AllowCreationOfContracts); } try { GetBlockFilledSlots(); } catch { int[] block_filled_slots = Enumerable.Repeat(1, GetBlockFilledSlotsNumber()).ToArray(); PutBlockFilledSlots(block_filled_slots); } try { GetNextMaintenanceTime(); } catch { PutNextMaintenanceTime((long)Args.Instance.GenesisBlock.Timestamp); } try { GetTotalEnergyCurrentLimit(); } catch { PutTotalEnergyCurrentLimit(GetTotalEnergyLimit()); } try { GetTotalEnergyTargetLimit(); } catch { PutTotalEnergyTargetLimit(GetTotalEnergyLimit() / 14400); } try { GetTotalEnergyAverageUsage(); } catch { PutTotalEnergyAverageUsage(0); } try { GetTotalEnergyAverageTime(); } catch { PutTotalEnergyAverageTime(0); } try { GetBlockEnergyUsage(); } catch { PutBlockEnergyUsage(0); } try { GetAllowAccountStateRoot(); } catch { PutAllowAccountStateRoot((int)Args.Instance.Committe.AllowAccountStateRoot); } try { GetAllowProtoFilterNum(); } catch { PutAllowProtoFilterNum((int)Args.Instance.Committe.AllowProtoFilterNum); } }
public WitnessStore(IRevokingDatabase revoking_database, string db_name = "witness") : base(revoking_database, db_name) { }
public AccountStateStoreTrie(IRevokingDatabase revoking_database, string db_name = "accountTrie") : base(revoking_database, db_name) { }
public RecentBlockStore(IRevokingDatabase revoking_database, string db_name = "recent-block") : base(revoking_database, db_name) { }