Skip to content
Snippets Groups Projects
Unverified Commit 66a6f4b0 authored by Anthony Martin's avatar Anthony Martin Committed by GitHub
Browse files

Merge pull request #159 from steemit/158-durable-accounts-fee-fix

fixed durable account fees #158
parents 11f72bc0 e803cd58
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ def build_account_tx(account, keydb, silent=True):
name = account["name"]
return {"operations" : [{"type" : "account_create_operation", "value" : {
"fee" : account["vesting"],
"fee" : {"amount" : "0", "precision" : 3, "nai" : "@@000000021"},
"creator" : account["creator"],
"new_account_name" : name,
"owner" : keydb.get_authority(name, "owner"),
......@@ -19,6 +19,10 @@ def build_account_tx(account, keydb, silent=True):
"posting" : keydb.get_authority(name, "posting"),
"memo_key" : keydb.get_pubkey(name, "memo"),
"json_metadata" : "",
}}, {"type" : "transfer_to_vesting_operation", "value" : {
"from" : "initminer",
"to" : name,
"amount" : account["vesting"],
}}],
"wif_sigs" : [keydb.get_privkey(account["creator"])]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment