예제 #1
0
 def get_tx_status(self, txhash):
     return unwrap1(
         self.execute("SELECT status FROM tx_data WHERE txhash = ?",
                      (txhash, )).fetchone())
예제 #2
0
파일: txdb.py 프로젝트: Andymeows/ngcccbase
 def get_tx_status(self, txhash):
     return unwrap1(self.execute("SELECT status FROM tx_data WHERE txhash = ?",
                                 (txhash, )).fetchone())
예제 #3
0
 def find_coin(self, txhash, outindex):
     return unwrap1(
         self.execute("SELECT id FROM coin_data WHERE txhash = ? and outindex = ?", (txhash, outindex)).fetchone()
     )
예제 #4
0
파일: coindb.py 프로젝트: ligi/ngcccbase
 def find_coin(self, txhash, outindex):
     return unwrap1(
         self.execute(
             "SELECT id FROM coin_data WHERE txhash = ? and outindex = ?",
             (txhash, outindex)).fetchone())