1+ // Copyright (C) 2015-2025 The Neo Project.
2+ //
3+ // Client.Netmap.cs file belongs to the neo project and is free
4+ // software distributed under the MIT software license, see the
5+ // accompanying file LICENSE in the main directory of the
6+ // repository or http://www.opensource.org/licenses/mit-license.php
7+ // for more details.
8+ //
9+ // Redistribution and use in source and binary forms with or without
10+ // modifications are permitted.
11+
12+ using Neo . FileStorage . API . Cryptography ;
13+ using Neo . FileStorage . API . Netmap ;
114using System ;
215using System . Threading ;
316using System . Threading . Tasks ;
4- using Neo . FileStorage . API . Cryptography ;
5- using Neo . FileStorage . API . Netmap ;
617
718namespace Neo . FileStorage . API . Client
819{
@@ -14,9 +25,9 @@ public async Task<NodeInfo> LocalNodeInfo(CallOptions options = null, Cancellati
1425 CheckOptions ( opts ) ;
1526 var req = new LocalNodeInfoRequest
1627 {
17- Body = new LocalNodeInfoRequest . Types . Body { }
28+ Body = new LocalNodeInfoRequest . Types . Body { } ,
29+ MetaHeader = opts . GetRequestMetaHeader ( )
1830 } ;
19- req . MetaHeader = opts . GetRequestMetaHeader ( ) ;
2031 opts . Key . Sign ( req ) ;
2132
2233 return await LocalNodeInfo ( req , opts . Deadline , context ) ;
@@ -77,9 +88,9 @@ public async Task<NetworkInfo> NetworkInfo(CallOptions options = null, Cancellat
7788 CheckOptions ( opts ) ;
7889 var req = new NetworkInfoRequest
7990 {
80- Body = new NetworkInfoRequest . Types . Body { }
91+ Body = new NetworkInfoRequest . Types . Body { } ,
92+ MetaHeader = opts . GetRequestMetaHeader ( )
8193 } ;
82- req . MetaHeader = opts . GetRequestMetaHeader ( ) ;
8394 opts . Key . Sign ( req ) ;
8495 var resp = await NetmapClient . NetworkInfoAsync ( req , cancellationToken : context ) ;
8596 ProcessResponse ( resp ) ;
0 commit comments