Plutus icon indicating copy to clipboard operation
Plutus copied to clipboard

Only Care about 4 database ?

Open spookycheekybreeky opened this issue 5 years ago • 1 comments

that mean we care only about the database 0,1,2,3 ?

def process(private_key, public_key, address, database): """Accept an address and query the database. If the address is found in the database, then it is assumed to have a balance and the wallet data is written to the hard drive. If the address is not in the database, then it is assumed to be empty and printed to the user. This is a fast and efficient query. Average Time: 0.0000026941 seconds """ if address in database[0] or
address in database[1] or
address in database[2] or
address in database[3]: with open('plutus.txt', 'a') as file: file.write('hex private key: ' + str(private_key) + '\n' + 'public key: ' + str(public_key) + '\n' + 'address: ' + str(address) + '\n\n') #'WIF private key: ' + str(private_key_to_WIF(private_key)) + '\n' + else: print(str(address))

spookycheekybreeky avatar Dec 02 '20 17:12 spookycheekybreeky

No... read the code between lines 122-130 in plutus.py. The database files are deserialized into 4 chunks.

Wingman4l7 avatar Feb 23 '21 03:02 Wingman4l7