warning( 'New block: %s (height %d bits: UNKNOWN)' % ( b2a_hex( newBlock). error( 'Was working on block with wrong specs: %s (height: %d->%d bits: %s->%s' % (ī2a_hex( newBlock). MP)ĭef updateBlock( self, newBlock, height = None, bits = None, _HBH = None): setCoinbase( b'\0\0') # necessary to avoid triggering segwit marker flags makeCoinbaseTxn( subsidy, False, witness_commitment = None)Ĭbtxn. WarningDelayĭef UpdateClearMerkleTree( self, MT, MP):įor copy_mp in ( 'version', '_BlockVersionBytes', 'rules', '_filtered_vbavailable'):ĭef createClearMerkleTree( self, height):Ĭbtxn = self. If not hasattr( self, 'WarningDelayMerkleUpdate'): If not hasattr( self, 'WarningDelayTxnLongpoll'): If not hasattr( self, 'WorkQueueSizeClear'): URINamePair( BS, 'BlockSubmissions' % ( i,)) URINamePair( TC, 'TemplateChecks' % ( i,))įor i in range( len( getattr( self, 'BlockSubmissions', ()))): LeveledTS = tuple( x for x in sorted( LeveledTS. URINamePair( TS, 'TemplateSources' % ( i,)) get( a, defname)įor i in range( len( self. If getattr( self, 'BlockSubmissions', None) is None:įor a in ( self. TemplateChecks = list( getattr( self, 'TemplateChecks', ())) TemplateSources = list( getattr( self, 'TemplateSources', ())) If getattr( self, 'TemplateChecks', True) is None: ( merkleRoot, merkleTree, coinbase, prevBlock, bits) = MRDīlockVersionBytes = merkleTree. Withashes = ( gentx_withash,) tuple( a. varlen import varlenEncode, varlenDecodeĭef CalculateWitnessCommitment( txnobjs, nonce, force = False): script import BitcoinScript, countSigOpsįrom bitcoin. # You should have received a copy of the GNU Affero General Public Licenseįrom bitcoin. #WINFO PROPOSALS LICENSE## GNU Affero General Public License for more details. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # but WITHOUT ANY WARRANTY without even the implied warranty of # This program is distributed in the hope that it will be useful, # License, or (at your option) any later version. #WINFO PROPOSALS SOFTWARE## published by the Free Software Foundation, either version 3 of the # it under the terms of the GNU Affero General Public License as # This program is free software: you can redistribute it and/or modify
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |