def getPrimaryStorage(self): """ This is usually an implementation of Ledger """ if self.config.primaryStorage is None: fields = getTxnOrderedFields() return Ledger(CompactMerkleTree(hashStore=self.hashStore), dataDir=self.dataLocation, serializer=CompactSerializer(fields=fields), fileName=self.config.domainTransactionsFile, ensureDurability=self.config.EnsureLedgerDurability) else: return initStorage(self.config.primaryStorage, name=self.name + NODE_PRIMARY_STORAGE_SUFFIX, dataDir=self.dataLocation, config=self.config)
def txnFieldOrdering(self): fields = getTxnOrderedFields() return updateFieldsWithSeqNo(fields)
def domainTxnOrderedFields(): return getTxnOrderedFields()