Client: make operation hash messages consistent (fix bug in test_multinode.sh)
This commit is contained in:
parent
5eb81f29a3
commit
80587889d5
@ -2,6 +2,7 @@
|
|||||||
(* *)
|
(* *)
|
||||||
(* Open Source License *)
|
(* Open Source License *)
|
||||||
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
||||||
|
(* Copyright (c) 2018 Nomadic Labs, <contact@nomadic-labs.com> *)
|
||||||
(* *)
|
(* *)
|
||||||
(* Permission is hereby granted, free of charge, to any person obtaining a *)
|
(* Permission is hereby granted, free of charge, to any person obtaining a *)
|
||||||
(* copy of this software and associated documentation files (the "Software"),*)
|
(* copy of this software and associated documentation files (the "Software"),*)
|
||||||
@ -533,7 +534,7 @@ let inject_operation
|
|||||||
let oph = Operation_hash.hash_bytes [bytes] in
|
let oph = Operation_hash.hash_bytes [bytes] in
|
||||||
cctxt#message
|
cctxt#message
|
||||||
"@[<v 0>Operation: 0x%a@,\
|
"@[<v 0>Operation: 0x%a@,\
|
||||||
Operation hash: %a@]"
|
Operation hash is '%a'@]"
|
||||||
MBytes.pp_hex bytes
|
MBytes.pp_hex bytes
|
||||||
Operation_hash.pp oph >>= fun () ->
|
Operation_hash.pp oph >>= fun () ->
|
||||||
cctxt#message
|
cctxt#message
|
||||||
@ -544,7 +545,7 @@ let inject_operation
|
|||||||
else
|
else
|
||||||
Shell_services.Injection.operation cctxt ~chain bytes >>=? fun oph ->
|
Shell_services.Injection.operation cctxt ~chain bytes >>=? fun oph ->
|
||||||
cctxt#message "Operation successfully injected in the node." >>= fun () ->
|
cctxt#message "Operation successfully injected in the node." >>= fun () ->
|
||||||
cctxt#message "Operation hash: %a" Operation_hash.pp oph >>= fun () ->
|
cctxt#message "Operation hash is '%a'" Operation_hash.pp oph >>= fun () ->
|
||||||
begin
|
begin
|
||||||
match confirmations with
|
match confirmations with
|
||||||
| None ->
|
| None ->
|
||||||
|
Loading…
Reference in New Issue
Block a user