From bdcaf5a08d40a146ad232ef825423f6fc099d9fb Mon Sep 17 00:00:00 2001 From: Jude Nelson Date: Tue, 30 Jan 2018 17:41:30 -0500 Subject: [PATCH] bugfix: have Atlas tell the subdomain indexer when a zonefile arrives --- blockstack/lib/atlas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blockstack/lib/atlas.py b/blockstack/lib/atlas.py index 766b60ea2..1f4101bc2 100644 --- a/blockstack/lib/atlas.py +++ b/blockstack/lib/atlas.py @@ -3189,15 +3189,15 @@ class AtlasZonefileCrawler( threading.Thread ): self.store_zonefile_cb = cb - def set_zoenfile_present(zfhash, block_height, con=None, path=None): + def set_zonefile_present(self, zfhash, block_height, con=None, path=None): """ Set a zonefile as present, and if it was previously absent, inform the storage listener """ was_present = atlasdb_set_zonefile_present( zfhash, True, con=con, path=path ) # tell anyone who cares that we got this zone file, if it was new - if not was_present and self.store_zonefile_db: - self.store_zonefile_cb(fetched_zfhash, block_height) + if not was_present and self.store_zonefile_cb: + self.store_zonefile_cb(zfhash, block_height) def store_zonefile_data( self, fetched_zfhash, zonefile_data, min_block_height, peer_hostport, con, path ):