From 80587889d5791b647655495734c91bea22a72134 Mon Sep 17 00:00:00 2001 From: MBourgoin Date: Tue, 22 Jan 2019 22:01:24 +0100 Subject: [PATCH] Client: make operation hash messages consistent (fix bug in test_multinode.sh) --- src/proto_alpha/lib_client/injection.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/proto_alpha/lib_client/injection.ml b/src/proto_alpha/lib_client/injection.ml index f9cd4ef0a..42d6d8053 100644 --- a/src/proto_alpha/lib_client/injection.ml +++ b/src/proto_alpha/lib_client/injection.ml @@ -2,6 +2,7 @@ (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. *) +(* Copyright (c) 2018 Nomadic Labs, *) (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* 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 cctxt#message "@[Operation: 0x%a@,\ - Operation hash: %a@]" + Operation hash is '%a'@]" MBytes.pp_hex bytes Operation_hash.pp oph >>= fun () -> cctxt#message @@ -544,7 +545,7 @@ let inject_operation else Shell_services.Injection.operation cctxt ~chain bytes >>=? fun oph -> 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 match confirmations with | None ->