mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-26 22:25:11 +08:00
expose getting all namespace preorders; fix typo
This commit is contained in:
@@ -728,7 +728,7 @@ class BlockstackDB( virtualchain.StateEngine ):
|
||||
Includes expired namespaces by default.
|
||||
"""
|
||||
|
||||
return namedb_get_namespace_at(name, block_number, include_expired=True)
|
||||
return namedb_get_namespace_at(namespace_id, block_number, include_expired=True)
|
||||
|
||||
|
||||
def get_name_history( self, name ):
|
||||
@@ -916,6 +916,16 @@ class BlockstackDB( virtualchain.StateEngine ):
|
||||
return namespace_ids
|
||||
|
||||
|
||||
def get_all_preordered_namespace_hashes( self ):
|
||||
"""
|
||||
Get all oustanding namespace preorder hashes that have not expired.
|
||||
Used for testing
|
||||
"""
|
||||
cur = self.db.cursor()
|
||||
namespace_hashes = namedb_get_all_preordered_namespace_hashes( cur, self.lastblock )
|
||||
return namespace_hashes
|
||||
|
||||
|
||||
def get_all_importing_namespace_hashes( self ):
|
||||
"""
|
||||
Get the set of all preordered and revealed namespace hashes that have not expired.
|
||||
|
||||
Reference in New Issue
Block a user