Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Jun 15, 2014
2 parents 9514a43 + 99c8cd1 commit 2800636
Show file tree
Hide file tree
Showing 297 changed files with 99,087 additions and 58,899 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ osxbuild/env

/CompilerArgs.nsi
/build/bdist.win32/winexe/temp
cppForSwig
/*.dll
/qrc_img_resources.py
/.project
/.pydevproject
/.settings
/*.wallet

/findpass.py
/*.txt
/sandbox.py
13 changes: 8 additions & 5 deletions ArmoryDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
#
#######################################################################################################

import leveldb
from armoryengine import *
import struct
import os
import struct

from armoryengine.ArmoryUtils import ARMORY_HOME_DIR, unpackVarInt
from armoryengine.Block import PyBlockHeader
from armoryengine.Transaction import PyTx
import leveldb


#dbheaders_path = '/home/goat/.armory/databases/leveldb_headers'
#dbblkdata_path = '/home/goat/.armory/databases/leveldb_blkdata'

dbheaders_path = os.path.join(ARMORY_HOME_DIR, 'databases', 'leveldb_headers')
dbblkdata_path = os.path.join(ARMORY_HOME_DIR, 'databases', 'leveldb_blkdata')

Expand Down Expand Up @@ -245,7 +248,7 @@ def blkdataDBHasBlockHash(self, Hash):
if(len(val)==84):
key = '\x03' + val[80:84]
try:
val = dArmoryDB.bblkdata.Get(key)
val = ArmoryDB.bblkdata.Get(key)
return True
except:
return False
Expand Down
Loading

0 comments on commit 2800636

Please sign in to comment.