def test_get_inputs_from_rpc_json_0a6a357e(self):
        tx_0a6a357e = json.loads(TX_0a6a357e)
        inputs = bip69.get_inputs_from_rpc_json(tx_0a6a357e)

        self.assertEqual(len(inputs), 17)
        self.assertEqual(inputs[0], (('643e5f4e66373a57251fb173151e838ccd27d279'
                                      'aca882997e005016bb53d5aa'), 0))
        self.assertEqual(inputs[15], (('6c1d56f31b2de4bfc6aaea28396b333102b1f60'
                                       '0da9c6d6149e96ca43f1102b1'), 1))
    def test_get_inputs_from_rpc_json_0a6a357e(self):
        """Verify that relevant input data is extracted for tx 0a6a357e..."""
        inputs = bip69.get_inputs_from_rpc_json(self.tx_json_0a6a357e)

        self.assertEqual(len(inputs), 17)
        self.assertEqual(inputs[0], (('643e5f4e66373a57251fb173151e838ccd27d279'
                                      'aca882997e005016bb53d5aa'), 0))
        self.assertEqual(inputs[15], (('6c1d56f31b2de4bfc6aaea28396b333102b1f60'
                                       '0da9c6d6149e96ca43f1102b1'), 1))
 def test_sort_inputs_0a6a357e(self):
     """Verify that inputs are correctly sorted for tx 0a6a357e..."""
     inputs = bip69.get_inputs_from_rpc_json(self.tx_json_0a6a357e)
     bip69_inputs = bip69.sort_inputs(inputs)
     self.assertEqual(bip69_inputs[0],
                      (('0e53ec5dfb2cb8a71fec32dc9a634a35b7e24799295ddd52782'
                        '17822e0b31f57'), 0))
     self.assertEqual(bip69_inputs[10],
                      (('7d037ceb2ee0dc03e82f17be7935d238b35d1deabf953a892a4'
                        '507bfbeeb3ba4'), 1))
Esempio n. 4
0
 def test_sort_inputs_0a6a357e(self):
     tx_0a6a357e = json.loads(TX_0a6a357e)
     inputs = bip69.get_inputs_from_rpc_json(tx_0a6a357e)
     bip69_inputs = bip69.sort_inputs(inputs)
     self.assertEqual(bip69_inputs[0],
                      (('0e53ec5dfb2cb8a71fec32dc9a634a35b7'
                        'e24799295ddd5278217822e0b31f57'), 0))
     self.assertEqual(bip69_inputs[10],
                      (('7d037ceb2ee0dc03e82f17be7935d238b'
                        '35d1deabf953a892a4507bfbeeb3ba4'), 1))
 def test_sort_inputs_0a6a357e(self):
     tx_0a6a357e = json.loads(TX_0a6a357e)
     inputs = bip69.get_inputs_from_rpc_json(tx_0a6a357e)
     bip69_inputs = bip69.sort_inputs(inputs)
     self.assertEqual(bip69_inputs[0], (('0e53ec5dfb2cb8a71fec32dc9a634a35b7'
                                         'e24799295ddd5278217822e0b31f57'),
                                         0))
     self.assertEqual(bip69_inputs[10], (('7d037ceb2ee0dc03e82f17be7935d238b'
                                          '35d1deabf953a892a4507bfbeeb3ba4'),
                                        1))
Esempio n. 6
0
    def test_get_inputs_from_rpc_json_0a6a357e(self):
        tx_0a6a357e = json.loads(TX_0a6a357e)
        inputs = bip69.get_inputs_from_rpc_json(tx_0a6a357e)

        self.assertEqual(len(inputs), 17)
        self.assertEqual(inputs[0],
                         (('643e5f4e66373a57251fb173151e838ccd27d279'
                           'aca882997e005016bb53d5aa'), 0))
        self.assertEqual(inputs[15],
                         (('6c1d56f31b2de4bfc6aaea28396b333102b1f60'
                           '0da9c6d6149e96ca43f1102b1'), 1))
    def test_get_inputs_from_rpc_json_0a6a357e(self):
        """Verify that relevant input data is extracted for tx 0a6a357e..."""
        inputs = bip69.get_inputs_from_rpc_json(self.tx_json_0a6a357e)

        self.assertEqual(len(inputs), 17)
        self.assertEqual(inputs[0],
                         (('643e5f4e66373a57251fb173151e838ccd27d279'
                           'aca882997e005016bb53d5aa'), 0))
        self.assertEqual(inputs[15],
                         (('6c1d56f31b2de4bfc6aaea28396b333102b1f60'
                           '0da9c6d6149e96ca43f1102b1'), 1))
 def test_sort_inputs_0a6a357e(self):
     """Verify that inputs are correctly sorted for tx 0a6a357e..."""
     inputs = bip69.get_inputs_from_rpc_json(self.tx_json_0a6a357e)
     bip69_inputs = bip69.sort_inputs(inputs)
     self.assertEqual(
         bip69_inputs[0],
         (('0e53ec5dfb2cb8a71fec32dc9a634a35b7e24799295ddd52782'
           '17822e0b31f57'), 0))
     self.assertEqual(
         bip69_inputs[10],
         (('7d037ceb2ee0dc03e82f17be7935d238b35d1deabf953a892a4'
           '507bfbeeb3ba4'), 1))