Ejemplo n.º 1
0
        /// <summary>
        /// Creates a request to multiple peers to create the transaction.
        /// </summary>
        ///
        /// <param name="transaction">A reference to a <see cref="TransactionApi"/> type.</param>
        ///
        /// <returns>Returns a <see cref="List{ArkTransactionResponse}"/> type.</returns>
        ///
        public List <ArkTransactionPostResponse> MultipleBroadCast(TransactionApi transaction)
        {
            var res = new List <ArkTransactionPostResponse>();

            for (var i = 0; i < _networkApi.NetworkSettings.MaxNumOfBroadcasts; i++)
            {
                res.Add(PostTransaction(transaction, _networkApi.GetRandomPeer()));
            }

            return(res);
        }