forked from TrueCloudLab/neoneo-go
cli: add await flag for operations with transactions
New --await flag is an option to synchronize on transaction execution for CLI commands. Closes #3244 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
parent
4f5e3f363a
commit
0ffa24932b
18 changed files with 383 additions and 39 deletions
|
@ -309,6 +309,13 @@ func (e *Executor) CheckTxPersisted(t *testing.T, prefix ...string) (*transactio
|
|||
return tx, height
|
||||
}
|
||||
|
||||
func (e *Executor) CheckAwaitableTxPersisted(t *testing.T, prefix ...string) (*transaction.Transaction, uint32) {
|
||||
tx, vub := e.CheckTxPersisted(t, prefix...)
|
||||
e.CheckNextLine(t, "OnChain:\ttrue")
|
||||
e.CheckNextLine(t, "VMState:\tHALT")
|
||||
return tx, vub
|
||||
}
|
||||
|
||||
func GenerateKeys(t *testing.T, n int) ([]*keys.PrivateKey, keys.PublicKeys) {
|
||||
privs := make([]*keys.PrivateKey, n)
|
||||
pubs := make(keys.PublicKeys, n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue