Skip to main content
Sign in
Snippets Groups Projects

fix(account):if new account can't pay NewAccountTax, it must be removed

11 files
+ 1229
804
Compare changes
  • Side-by-side
  • Inline

Files

Feature: Balance transfer
Feature: Balance transfer
Scenario: If alice sends 5 ĞD to Dave, Dave will get 5 ĞD
Scenario: Create a new account with enough founds
Given alice have 10 ĞD
When alice send 5 ĞD to dave
When alice send 5 ĞD to dave
Then dave should have 5 ĞD
Then dave should have 5 ĞD
 
When 1 block later
 
"""
 
The blockchain should automatically withdraw account creation tax (3 ĞD)
 
"""
 
Then dave should have 2 ĞD
 
 
Scenario: Create a new account without enough founds then retry with enough founds
 
When alice send 2 ĞD to eve
 
Then eve should have 2 ĞD
 
When 1 block later
 
"""
 
The blockchain should automatically destroy Evec account
 
because Eve not have enough founds to pay the new account tax
 
"""
 
Then eve should have 0 ĞD
 
When alice send 5 ĞD to eve
 
Then eve should have 5 ĞD
 
When 1 block later
 
"""
 
The blockchain should automatically withdraw account creation tax (3 ĞD)
 
"""
 
Then eve should have 2 ĞD
 
Loading