Update twoxtx patch (#2997)

This commit is contained in:
Tyera Eulberg 2022-03-09 12:15:42 -07:00 committed by GitHub
parent b7b7690217
commit 26d3a33939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 14 deletions

View File

@ -12,10 +12,10 @@ board and is not a permanent solution.
3 files changed, 16 insertions(+), 7 deletions(-) 3 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/rpc/src/rpc.rs b/rpc/src/rpc.rs diff --git a/rpc/src/rpc.rs b/rpc/src/rpc.rs
index 987980cb53..607681728c 100644 index 1a0dcdeb6c..e33492fa84 100644
--- a/rpc/src/rpc.rs --- a/rpc/src/rpc.rs
+++ b/rpc/src/rpc.rs +++ b/rpc/src/rpc.rs
@@ -4177,8 +4177,11 @@ pub mod rpc_obsolete_v1_7 { @@ -4214,8 +4214,11 @@ pub mod rpc_obsolete_v1_7 {
} }
} }
@ -28,8 +28,8 @@ index 987980cb53..607681728c 100644
+const MAX_BASE64_SIZE: usize = 3288; +const MAX_BASE64_SIZE: usize = 3288;
fn decode_and_deserialize<T>( fn decode_and_deserialize<T>(
encoded: String, encoded: String,
encoding: UiTransactionEncoding, encoding: TransactionBinaryEncoding,
@@ -7961,7 +7964,7 @@ pub mod tests { @@ -7749,7 +7752,7 @@ pub mod tests {
} }
#[test] #[test]
@ -38,7 +38,7 @@ index 987980cb53..607681728c 100644
let ff_tx = vec![0xffu8; PACKET_DATA_SIZE]; let ff_tx = vec![0xffu8; PACKET_DATA_SIZE];
let tx58 = bs58::encode(&ff_tx).into_string(); let tx58 = bs58::encode(&ff_tx).into_string();
assert_eq!(tx58.len(), MAX_BASE58_SIZE); assert_eq!(tx58.len(), MAX_BASE58_SIZE);
@@ -7971,8 +7974,11 @@ pub mod tests { @@ -7759,8 +7762,11 @@ pub mod tests {
#[test] #[test]
fn test_decode_and_deserialize_too_large_payloads_fail() { fn test_decode_and_deserialize_too_large_payloads_fail() {
@ -84,4 +84,3 @@ index 5466464f5a..5b71b9dc39 100644
-- --
2.32.0 (Apple Git-132) 2.32.0 (Apple Git-132)