Example #1
0
 def setUp(self):
     self.bs = BlockchainState.from_url(None, True)
     self.blockhash = "00000000c927c5d0ee1ca362f912f83c462f644e695337ce3731b9f7c5d1ca8c"
     self.previous_blockhash = "000000000001c503d2e3bff1d73eb53213a8d784206a233181ea11f95c5fd097"
     self.txhash = "72386db4bf4ced6380763d3eb09b634771ba519e200b57da765def26219ef508"
     self.height = 154327
     self.coinbase = "4fe45a5ba31bab1e244114c4555d9070044c73c98636231c77657022d76b87f7"
     self.tx = self.bs.get_tx(self.txhash)
     self.coinbasetx = self.bs.get_tx(self.coinbase)
Example #2
0
 def setUp(self):
     self.blockchain_state = BlockchainState.from_url(None, True)
     self.store_conn = DataStoreConnection(":memory:")
     self.cdstore = ColorDataStore(self.store_conn.conn)
     self.metastore = ColorMetaStore(self.store_conn.conn)
     self.colormap = ColorMap(self.metastore)
     self.makeBuilder()
     self.blue_desc = "obc:" \
         "b1586cd10b32f78795b86e9a3febe58d" \
         "cb59189175fad884a7f4a6623b77486e" \
         ":0:46442"
     self.red_desc = "obc:" \
         "8f6c8751f39357cd42af97a67301127d" \
         "497597ae699ad0670b4f649bd9e39abf" \
         ":0:46444"
     self.blue_id = self.colormap.resolve_color_desc(self.blue_desc)
     self.red_id = self.colormap.resolve_color_desc(self.red_desc)
     self.bh = "00000000152164fcc3589ef36a0c34c1c821676e5766787a2784a761dd3dbfb5"
     self.bh2 = "0000000001167e13336f386acbc0d9169dd929ecb1e5d44229fc870206e669f8"
     self.bh3 = "0000000002fda52e8ad950d48651b3a86bce6d80eb016dffbec5477f10467541"